Ruby 4.1 リファレンスマニュアル

module function FileUtils.#getwd

pwd -> String[permalink][rdoc][edit]
getwd -> String

プロセスのカレントディレクトリを文字列で返します。