Method: Pathname#extname
- Defined in:
- pathname.c
#extname ⇒ Object
Returns the file’s extension.
See File.extname.
785 786 787 788 789 790 |
# File 'pathname.c', line 785 static VALUE path_extname(VALUE self) { VALUE str = get_strpath(self); return rb_funcall(rb_cFile, id_extname, 1, str); } |