るりまサーチ

最速Rubyリファレンスマニュアル検索!
1346件ヒット [1301-1346件を表示] (0.015秒)
トップページ > ライブラリ:pathname[x]

クラス

モジュール

キーワード

検索結果

<< < ... 12 13 14 >>

Pathname.new(path) -> Pathname (2.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.pwd -> Pathname (2.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::SEPARATOR_PAT -> Regexp (2.0)

パス名のなかのディレクトリを区切る部分にマッチする正規表現です。

パス名のなかのディレクトリを区切る部分にマッチする正規表現です。

この値は環境依存です。

Pathname::TO_PATH -> Symbol (2.0)

内部的に使っている定数です。利用者が使うことはありません。

内部的に使っている定数です。利用者が使うことはありません。
<< < ... 12 13 14 >>