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/bool2num.rb | |
parent | db7e06e301b689efcd421fd56fb1c23e3595e173 (diff) | |
download | puppet-stdlib-62520a2df03acde975d8d7bd96805e767a9611f4.tar.gz puppet-stdlib-62520a2df03acde975d8d7bd96805e767a9611f4.tar.bz2 |
Added doc strings for first five functions
Diffstat (limited to 'lib/puppet/parser/functions/bool2num.rb')
-rw-r--r-- | lib/puppet/parser/functions/bool2num.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/puppet/parser/functions/bool2num.rb b/lib/puppet/parser/functions/bool2num.rb index b2989d0..9a07a8a 100644 --- a/lib/puppet/parser/functions/bool2num.rb +++ b/lib/puppet/parser/functions/bool2num.rb @@ -4,6 +4,10 @@ module Puppet::Parser::Functions newfunction(:bool2num, :type => :rvalue, :doc => <<-EOS + Converts a boolean to a number. Converts the values: + false, f, 0, n, and no to 0 + true, t, 1, y, and yes to 1 + Requires a single boolean or string as an input. EOS ) do |arguments| |