Method: Pathname#expand_path
- Defined in:
- pathname.c
#expand_path(*args) ⇒ Object
Returns the absolute path for the file.
See File.expand_path.
797 798 799 800 801 802 803 804 805 806 807 |
# File 'pathname.c', line 797 static VALUE (int argc, VALUE *argv, VALUE self) { VALUE str = get_strpath(self); VALUE dname; if (rb_scan_args(argc, argv, "01", &dname) == 0) str = rb_funcall(rb_cFile, , 1, str); else str = rb_funcall(rb_cFile, , 2, str, dname); return rb_class_new_instance(1, &str, rb_obj_class(self)); } |