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%2Fabs.rb;h=5625b984c6bfb72aad5abb44e81e69c41cc40015;hp=59e468e982c086346b9c81d20623a88c67c12aca;hb=30caaa85aed7015ca0d77216bff175eebd917eb7;hpb=6f656bd4265e3dab13b9af2bf96e9044322e9d8f diff --git a/3rdparty/modules/stdlib/lib/puppet/parser/functions/abs.rb b/3rdparty/modules/stdlib/lib/puppet/parser/functions/abs.rb index 59e468e98..5625b984c 100644 --- a/3rdparty/modules/stdlib/lib/puppet/parser/functions/abs.rb +++ b/3rdparty/modules/stdlib/lib/puppet/parser/functions/abs.rb @@ -3,11 +3,18 @@ # module Puppet::Parser::Functions newfunction(:abs, :type => :rvalue, :doc => <<-DOC - Returns the absolute value of a number, for example -34.56 becomes - 34.56. Takes a single integer and float value as an argument. + @summary + **Deprecated:** Returns the absolute value of a number + + For example -34.56 becomes 34.56. + Takes a single integer or float value as an argument. + + > *Note:* + **Deprected** from Puppet 6.0.0, the built-in + ['abs'](https://puppet.com/docs/puppet/6.4/function.html#abs)function will be used instead. + + @return The absolute value of the given number if it was an Integer - Note: from Puppet 6.0.0, the compatible function with the same name in Puppet core - will be used instead of this function. DOC ) do |arguments|