Method: Dir.getwd

Defined in:
dir.c

.pwdString

Returns the path to the current working directory:

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

Returns:


1526
1527
1528
1529
1530
# File 'dir.c', line 1526

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