method

path

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

Returns the path parameter passed to dir’s constructor.

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