Method: Dir.pwd

Defined in:
dir.c

.getwdString .pwdString

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

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

Overloads:

[View source]

1149
1150
1151
1152
1153
# File 'dir.c', line 1149

static VALUE
dir_s_getwd(VALUE dir)
{
    return rb_dir_getwd();
}