diff options
author | James Turnbull <james@lovedthanlost.net> | 2011-07-30 04:22:30 +1000 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2011-07-30 04:22:30 +1000 |
commit | 62520a2df03acde975d8d7bd96805e767a9611f4 (patch) | |
tree | 264c2349b395932e5598602697ffd02279f86ad6 /lib/puppet/parser/functions/chomp.rb | |
parent | db7e06e301b689efcd421fd56fb1c23e3595e173 (diff) |
Added doc strings for first five functions
Diffstat (limited to 'lib/puppet/parser/functions/chomp.rb')
-rw-r--r-- | lib/puppet/parser/functions/chomp.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/puppet/parser/functions/chomp.rb b/lib/puppet/parser/functions/chomp.rb index e1d788a..c99d139 100644 --- a/lib/puppet/parser/functions/chomp.rb +++ b/lib/puppet/parser/functions/chomp.rb @@ -3,7 +3,10 @@ # module Puppet::Parser::Functions - newfunction(:chomp, :type => :rvalue, :doc => <<-EOS + newfunction(:chomp, :type => :rvalue, :doc => <<-'EOS' + Removes the record separator from the end of a string or an array of + strings, for example `hello\n` becomes `hello`. + Requires a single string or array as an input. EOS ) do |arguments| |