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