APIdock / Ruby
/
method

getwd

ruby latest stable - Class: Dir
getwd()
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"
static VALUE
dir_s_getwd(VALUE dir)
{
 return rb_dir_getwd();
}

AltStyle によって変換されたページ (->オリジナル) /