method

path

ruby latest stable - Class: Dir
path()
public

Returns the path parameter passed to dir’s constructor.

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