Ruby 1.8.7 Reference Manual > All Libraries > Builtin Library > class Dir > path
path -> String
オープンしているディレクトリのパス名を文字列で返します。