path -> String[permalink][rdoc]to_path -> String-
オープンしているディレクトリのパス名を文字列で返します。
例:
Dir.open("..") do |d| d.path # => ".." d.to_path # => ".." end
このマニュアルは既にメンテナンスが終了したバージョンの Ruby を対象としています。 最新版のマニュアルへ
path -> String[permalink][rdoc]to_path -> Stringオープンしているディレクトリのパス名を文字列で返します。
例:
Dir.open("..") do |d|
d.path # => ".."
d.to_path # => ".."
end