Ruby 1.9.0 リファレンスマニュアル > ライブラリ一覧 > library _builtin > class Dir > path
path -> String
オープンしているディレクトリのパス名を文字列で返します。