Returns the extension, with a leading dot. See File.extname.
File.extname
26 27 28
# File 'lib/path/parts.rb', line 26 def extname File.extname(@path) end