method

pwd

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

Returns the path to the current working directory of this process as a string.

Dir.chdir("/tmp")   #=> 0
Dir.getwd           #=> "/tmp"
Dir.pwd             #=> "/tmp"