= private = protected
extname()
See File.extname. Returns the file’s extension.
# File lib/pathname.rb, line 860 def extname() File.extname(@path) end
Returns the extension including the ‘.’.
E.g.
Pathname("/path/to/file.rb").extname #=> ".rb"