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%2Fto_bytes.rb;h=b7de587ff6bfc58064f4a2a5bb6064abecaba3a3;hp=bff24b070baa3b530cd956ebc4a774b8d69f9c7c;hb=30caaa85aed7015ca0d77216bff175eebd917eb7;hpb=6f656bd4265e3dab13b9af2bf96e9044322e9d8f diff --git a/3rdparty/modules/stdlib/lib/puppet/parser/functions/to_bytes.rb b/3rdparty/modules/stdlib/lib/puppet/parser/functions/to_bytes.rb index bff24b070..b7de587ff 100644 --- a/3rdparty/modules/stdlib/lib/puppet/parser/functions/to_bytes.rb +++ b/3rdparty/modules/stdlib/lib/puppet/parser/functions/to_bytes.rb @@ -3,7 +3,12 @@ # module Puppet::Parser::Functions newfunction(:to_bytes, :type => :rvalue, :doc => <<-DOC - Converts the argument into bytes, for example 4 kB becomes 4096. + @summary + Converts the argument into bytes, for example 4 kB becomes 4096. + + @return + converted value into bytes + Takes a single string value as an argument. These conversions reflect a layperson's understanding of 1 MB = 1024 KB, when in fact 1 MB = 1000 KB, and 1 MiB = 1024 KiB.