method

path

v2_6_3 - Show latest stable - Class: Dir
path()
public

Returns the path parameter passed to dir’s constructor.

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