change directories (using an absolute path), and then store the value of the directory path in a variable.
Dir.chdir( "/Users/mikejfz" ) home = Dir.pwd p home