path()
public
Returns the path parameter passed to
dir’s constructor.
d = Dir.new("..")
d.path
Show source
static VALUE
dir_path(VALUE dir)
{
struct dir_data *dirp;
Data_Get_Struct(dir, struct dir_data, dirp);
if (NIL_P(dirp->path)) return Qnil;
return rb_str_dup(dirp->path);
}