Method: FileUtils.getwd

Defined in:
lib/fileutils.rb

.getwdObject

Returns a string containing the path to the current directory:

FileUtils.pwd # => "/rdoc/fileutils"

Related: FileUtils.cd.

[View source]

203
204
205
# File 'lib/fileutils.rb', line 203

def pwd
  Dir.pwd
end