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%2Fempty.rb;h=907ecb1967e8339b84380c82bb2b44a5ff160a2f;hp=e0b9838e26a3856d99e1a6ed118a010cafe74f13;hb=30caaa85aed7015ca0d77216bff175eebd917eb7;hpb=6f656bd4265e3dab13b9af2bf96e9044322e9d8f diff --git a/3rdparty/modules/stdlib/lib/puppet/parser/functions/empty.rb b/3rdparty/modules/stdlib/lib/puppet/parser/functions/empty.rb index e0b9838e2..907ecb196 100644 --- a/3rdparty/modules/stdlib/lib/puppet/parser/functions/empty.rb +++ b/3rdparty/modules/stdlib/lib/puppet/parser/functions/empty.rb @@ -3,10 +3,15 @@ # module Puppet::Parser::Functions newfunction(:empty, :type => :rvalue, :doc => <<-DOC - Returns true if the variable is empty. + @summary + **Deprecated:** Returns true if the variable is empty. - Note: from Puppet 5.5.0, the compatible function with the same name in Puppet core - will be used instead of this function. + @return + Returns `true` if the argument is an array or hash that contains no elements, + or an empty string. Returns `false` when the argument is a numerical value. + + > *Note*: **Deprecated** from Puppet 5.5.0, the built-in + [`empty`](https://puppet.com/docs/puppet/6.4/function.html#empty) function will be used instead. DOC ) do |arguments|