Ruby 1.9.3 リファレンスマニュアル > ライブラリ一覧 > pathnameライブラリ > Pathnameクラス > getwd

singleton method Pathname.getwd

getwd -> Pathname
pwd -> Pathname

カレントディレクトリを元に Pathname オブジェクトを生成します。 Pathname.new(Dir.getwd) と同じです。

class Pathname