instance method
Pathname#extname
() -> ::String
extname
pathname_builtin.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/pathname_builtin.rb, line 978
def extname() File.extname(@path) end
See File.extname. Returns the file’s extension.