= private = protected
extname()
Returns the file’s extension.
See File.extname.
static VALUE path_extname(VALUE self) { VALUE str = get_strpath(self); return rb_funcall(rb_cFile, id_extname, 1, str); }
Returns the extension including the ‘.’.
E.g.
Pathname("/path/to/file.rb").extname #=> ".rb"