X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-puppet.git;a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Flib%2Fpuppet%2Ffunctions%2Fstdlib%2Fextname.rb;h=120b46b22f882423d7bcff87e44f52adca5e76e3;hp=3818ef85d5eeb4a6561e3e7e68d305f0b88f395a;hb=30caaa85aed7015ca0d77216bff175eebd917eb7;hpb=6f656bd4265e3dab13b9af2bf96e9044322e9d8f 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