path -> String[permalink][rdoc][edit]to_path -> StringRuby 1.9.3 から-
オープンしているディレクトリのパス名を文字列で返します。
例Dir.open("..") do |d| p d.path # => ".." p d.to_path # => ".." end
path -> String[permalink][rdoc][edit]to_path -> StringRuby 1.9.3 からオープンしているディレクトリのパス名を文字列で返します。
例Dir.open("..") do |d|
p d.path # => ".."
p d.to_path # => ".."
end