48件ヒット
[1-48件を表示]
(0.031秒)
種類
- インスタンスメソッド (24)
- モジュール関数 (12)
- 特異メソッド (12)
ライブラリ
- ビルトイン (24)
- pathname (12)
- shell (6)
-
shell
/ command-processor (6)
クラス
- File (12)
- Pathname (12)
- Shell (6)
-
Shell
:: CommandProcessor (6)
モジュール
- Kernel (12)
検索結果
先頭5件
-
Pathname
# expand _ path(default _ dir = & # 39; . & # 39;) -> Pathname (18141.0) -
Pathname.new(File.expand_path(self.to_s, *args)) と同じです。
...w(File.expand_path(self.to_s, *args)) と同じです。
@param default_dir self が相対パスであれば default_dir を基準に展開されます。
//emlist[例][ruby]{
require "pathname"
path = Pathname("testfile")
Pathname.pwd # => #<Pathname:/path/to>
path.expand_path......# => #<Pathname:/path/to/testfile>
path.expand_path("../") # => #<Pathname:/path/testfile>
//}
@see File.expand_path... -
File
. expand _ path(path , default _ dir = & # 39; . & # 39;) -> String (18137.0) -
path を絶対パスに展開した文字列を返します。 path が相対パスであれば default_dir を基準にします。
..."/home/matz"
p File.expand_path("..") #=> "/home/matz/work"
p File.expand_path("..", "/tmp") #=> "/"
p File.expand_path("~") #=> "/home/matz"
p File.expand_path("~foo") #=> "/home/foo"
//}
@param path パスを表す文字列を指定します。
@param default_dir path が... -
Shell
# expand _ path(path) -> String (18113.0) -
Fileクラスにある同名のクラスメソッドと同じです.
...Fileクラスにある同名のクラスメソッドと同じです.
@param path ファイル名を表す文字列を指定します。
@see File.expand_path... -
Shell
:: CommandProcessor # expand _ path(path) -> String (18113.0) -
Fileクラスにある同名のクラスメソッドと同じです.
...Fileクラスにある同名のクラスメソッドと同じです.
@param path ファイル名を表す文字列を指定します。
@see File.expand_path... -
Kernel
. # require _ relative(relative _ feature) -> bool (12.0) -
現在のファイルからの相対パスで require します。
...で require します。
require File.expand_path(relative_feature, File.dirname(__FILE__))
とほぼ同じです。
Kernel.#eval などで文字列を評価した場合に、そこから
require_relative を呼出すと必ず失敗します。
@param relative_feature ファイル名の文字...