X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Flib%2Fpuppet%2Ffunctions%2Fstdlib%2Fextname.rb;h=120b46b22f882423d7bcff87e44f52adca5e76e3;hb=30caaa85aed7015ca0d77216bff175eebd917eb7;hp=3818ef85d5eeb4a6561e3e7e68d305f0b88f395a;hpb=9dd86576df2182653f8e96f51f11c917341eb4ce;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/stdlib/lib/puppet/functions/stdlib/extname.rb b/3rdparty/modules/stdlib/lib/puppet/functions/stdlib/extname.rb index 3818ef85d..120b46b22 100644 --- a/3rdparty/modules/stdlib/lib/puppet/functions/stdlib/extname.rb +++ b/3rdparty/modules/stdlib/lib/puppet/functions/stdlib/extname.rb @@ -1,12 +1,12 @@ -# Returns the Extension (the Portion of Filename in Path starting from the -# last Period). +# @summary +# Returns the Extension (the Portion of Filename in Path starting from the +# last Period). # # If Path is a Dotfile, or starts with a Period, then the starting Dot is not # dealt with the Start of the Extension. # # An empty String will also be returned, when the Period is the last Character # in Path. - Puppet::Functions.create_function(:'stdlib::extname') do # @param filename The Filename # @return [String] The Extension starting from the last Period