projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update stdlib and concat to 6.1.0 both
[mirror/dsa-puppet.git]
/
3rdparty
/
modules
/
stdlib
/
lib
/
puppet
/
parser
/
functions
/
num2bool.rb
diff --git
a/3rdparty/modules/stdlib/lib/puppet/parser/functions/num2bool.rb
b/3rdparty/modules/stdlib/lib/puppet/parser/functions/num2bool.rb
index
5e0f494
..
6e530db
100644
(file)
--- a/
3rdparty/modules/stdlib/lib/puppet/parser/functions/num2bool.rb
+++ b/
3rdparty/modules/stdlib/lib/puppet/parser/functions/num2bool.rb
@@
-3,15
+3,16
@@
#
module Puppet::Parser::Functions
newfunction(:num2bool, :type => :rvalue, :doc => <<-DOC
#
module Puppet::Parser::Functions
newfunction(:num2bool, :type => :rvalue, :doc => <<-DOC
- This function converts a number or a string representation of a number into a
- true boolean. Zero or anything non-numeric becomes false. Numbers higher then 0
-
become true
.
+ @summary
+ This function converts a number or a string representation of a number into a
+
true boolean
.
-
Note
that since Puppet 5.0.0 the same can be achieved with the Puppet Type System.
+
> *Note:*
that since Puppet 5.0.0 the same can be achieved with the Puppet Type System.
See the new() function in Puppet for the many available type conversions.
See the new() function in Puppet for the many available type conversions.
- Boolean(0) # false
- Boolean(1) # true
+ @return [Boolean]
+ Boolean(0) # false for any zero or negative number
+ Boolean(1) # true for any positive number
DOC
) do |arguments|
DOC
) do |arguments|