3件ヒット
[1-3件を表示]
(0.031秒)
検索結果
-
Pathname
. new(path) -> Pathname (54331.0) -
文字列 path を元に Pathname オブジェクトを生成します。
...文字列 path を元に Pathname オブジェクトを生成します。
@param path 文字列、または類似のオブジェクトを与えます。
実際には to_str に反応するオブジェクトなら何でも構いません。
@raise ArgumentError path が \0 を含んで......いると発生します。
//emlist[例][ruby]{
require "pathname"
Pathname.new(__FILE__) # => #<Pathname:/path/to/file.rb>
//}... -
Pathname
. getwd -> Pathname (58.0) -
カレントディレクトリを元に Pathname オブジェクトを生成します。 Pathname.new(Dir.getwd) と同じです。
...カレントディレクトリを元に Pathname オブジェクトを生成します。
Pathname.new(Dir.getwd) と同じです。
//emlist[例][ruby]{
require "pathname"
Pathname.getwd #=> #<Pathname:/home/zzak/projects/ruby>
//}
@see Dir.getwd... -
Pathname
. pwd -> Pathname (58.0) -
カレントディレクトリを元に Pathname オブジェクトを生成します。 Pathname.new(Dir.getwd) と同じです。
...カレントディレクトリを元に Pathname オブジェクトを生成します。
Pathname.new(Dir.getwd) と同じです。
//emlist[例][ruby]{
require "pathname"
Pathname.getwd #=> #<Pathname:/home/zzak/projects/ruby>
//}
@see Dir.getwd...