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