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