るりまサーチ

最速Rubyリファレンスマニュアル検索!
23件ヒット [1-23件を表示] (0.191秒)

別のキーワード

  1. pathname expand_path
  2. rbconfig expand
  3. file expand_path
  4. text expand_tabs
  5. _builtin expand_path

ライブラリ

クラス

検索結果

Pathname#expand_path(default_dir = '.') -> Pathname (33436.0)

Pathname.new(File.expand_path(self.to_s, *args)) と同じです。

...Pathname.new(File.expand_path(self.to_s, *args)) と同じです。

@param default_dir self が相対パスであれば default_dir を基準に展開されます。

//emlist[例][ruby]{
require "pathname"

p
ath = Pathname("testfile")
P
athname.pwd # => #<Pathname:/path/to>
p
ath.expand_...
...path # => #<Pathname:/path/to/testfile>
p
ath.expand_path("../") # => #<Pathname:/path/testfile>
//}

@see File.expand_path...

Shell#expand_path(path) -> String (30408.0)

Fileクラスにある同名のクラスメソッドと同じです.

...Fileクラスにある同名のクラスメソッドと同じです.

@param path ファイル名を表す文字列を指定します。

@see File.expand_path...

Shell::CommandProcessor#expand_path(path) -> String (27408.0)

Fileクラスにある同名のクラスメソッドと同じです.

...Fileクラスにある同名のクラスメソッドと同じです.

@param path ファイル名を表す文字列を指定します。

@see File.expand_path...