method

to_path

v2_5_5 - Show latest stable - Class: Dir
to_path()
public

Returns the path parameter passed to dir’s constructor.

d = Dir.new("..")
d.path   #=> ".."