X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-puppet.git;a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Flib%2Fpuppet%2Fparser%2Ffunctions%2Fany2bool.rb;h=c4b20d67451d8a316bd08221a60270b9cedda26d;hp=8f6d5d81aea16db5114d3eeecef097617bcd39a7;hb=30caaa85aed7015ca0d77216bff175eebd917eb7;hpb=6f656bd4265e3dab13b9af2bf96e9044322e9d8f diff --git a/3rdparty/modules/stdlib/lib/puppet/parser/functions/any2bool.rb b/3rdparty/modules/stdlib/lib/puppet/parser/functions/any2bool.rb index 8f6d5d81a..c4b20d674 100644 --- a/3rdparty/modules/stdlib/lib/puppet/parser/functions/any2bool.rb +++ b/3rdparty/modules/stdlib/lib/puppet/parser/functions/any2bool.rb @@ -3,8 +3,10 @@ # module Puppet::Parser::Functions newfunction(:any2bool, :type => :rvalue, :doc => <<-DOC - This converts 'anything' to a boolean. In practise it does the following: + @summary + Converts 'anything' to a boolean. + In practise it does the following: * Strings such as Y,y,1,T,t,TRUE,yes,'true' will return true * Strings such as 0,F,f,N,n,FALSE,no,'false' will return false * Booleans will just return their original value @@ -14,6 +16,8 @@ module Puppet::Parser::Functions Also see the built-in [`Boolean.new`](https://puppet.com/docs/puppet/latest/function.html#conversion-to-boolean) function. + + @return [Boolean] The boolean value of the object that was given DOC ) do |arguments|