Class: Pathname

Inherits:
Object
  • Object
show all
Defined in:
lib/henshin/ext.rb

Instance Method Summary collapse

Instance Method Details

#extensionString

Gets just the extension of the pathname

Returns:

  • (String)

    the extension of the path, without the ‘.’



51
52
53
# File 'lib/henshin/ext.rb', line 51

def extension
  self.extname[1..-1]
end