Method: File#path
- Defined in:
- file.c
#path ⇒ Object #to_path ⇒ Object
345 346 347 348 349 350 351 352 353 354 |
# File 'file.c', line 345
static VALUE
rb_file_path(VALUE obj)
{
rb_io_t *fptr;
fptr = RFILE(rb_io_taint_check(obj))->fptr;
rb_io_check_initialized(fptr);
if (NIL_P(fptr->pathv)) return Qnil;
return rb_obj_taint(rb_str_dup(fptr->pathv));
}
|