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%2Fstrip.rb;h=067af001d68f145ac7e5e4d07b9b401667bfdb79;hp=59d15a33a5dc5689a0796690377ae15e0a0f4bd4;hb=30caaa85aed7015ca0d77216bff175eebd917eb7;hpb=6f656bd4265e3dab13b9af2bf96e9044322e9d8f diff --git a/3rdparty/modules/stdlib/lib/puppet/parser/functions/strip.rb b/3rdparty/modules/stdlib/lib/puppet/parser/functions/strip.rb index 59d15a33a..067af001d 100644 --- a/3rdparty/modules/stdlib/lib/puppet/parser/functions/strip.rb +++ b/3rdparty/modules/stdlib/lib/puppet/parser/functions/strip.rb @@ -3,16 +3,19 @@ # module Puppet::Parser::Functions newfunction(:strip, :type => :rvalue, :doc => <<-DOC - This function removes leading and trailing whitespace from a string or from - every string inside an array. + @summary + This function removes leading and trailing whitespace from a string or from + every string inside an array. - *Examples:* + @return + String or Array converted - strip(" aaa ") + @example **Usage** - Would result in: "aaa" + strip(" aaa ") + Would result in: "aaa" - Note: from Puppet 6.0.0, the compatible function with the same name in Puppet core + > *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|