66件ヒット
[1-66件を表示]
(0.105秒)
ライブラリ
- ビルトイン (44)
- rbconfig (11)
-
win32
/ registry (11)
クラス
- Dir (22)
- File (22)
-
Win32
:: Registry (11)
モジュール
- RbConfig (11)
キーワード
-
absolute
_ path (11) - home (22)
検索結果
先頭5件
-
RbConfig
. expand(val , config = CONFIG) -> String (21414.0) -
与えられたパスを展開します。
...パスを展開します。
RbConfig.expand("$(bindir)") # => /home/foobar/all-ruby/ruby19x/bin
@param val 展開したい変数名を Makefile に書く形式で指定します。
@param config 変数展開に使用する設定を Hash で指定します。
@see RbConfig::MAKEFILE_CONFIG... -
Win32
:: Registry . expand _ environ(str) (12214.0) -
@todo
...@todo
str の %\w+% という並びを環境変数に置換します。
REG_EXPAND_SZ で用いられます。
詳細は以下の Win32 API を参照してください。
* ExpandEnvironmentStrings: http://msdn.microsoft.com/library/en-us/sysinfo/base/expandenvironmentstrings.asp... -
File
. expand _ path(path , default _ dir = & # 39; . & # 39;) -> String (9326.0) -
path を絶対パスに展開した文字列を返します。 path が相対パスであれば default_dir を基準にします。
...th が相対パスであれば default_dir を基準にします。
先頭の ~ はホームディレクトリ(環境変数 HOME が使われます)に、
~USER はそのユーザのホームディレクトリに展開されます。
//emlist[例][ruby]{
p Dir.getwd #=> "/home......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 が相......対パスであれば default_dir を基準に展開されます。... -
File
. absolute _ path(file _ name , dir _ string=nil) -> String (3313.0) -
file_name を絶対パスに変換した文字列を返します。
...file_name を絶対パスに変換した文字列を返します。
相対パスの場合はカレントディレクトリを基準とします。
dir_string を渡した場合はそのディレクトリを基準とします。
File.expand_path と異なり、 file_name 先頭が "~" である場....../emlist[例][ruby]{
p Dir.getwd #=> "/home/matz/work/bar"
p ENV["HOME"] #=> "/home/matz"
p File.absolute_path("..") #=> "/home/matz/work"
p File.absolute_path("..", "/tmp") #=> "/"
p File.absolute_path("~") #=> "/home/matz/work/bar/~"
p File.a......bsolute_path("~foo") #=> "/home/matz/work/bar/~foo"
//}
@see File.expand_path... -
Dir
. home -> String | nil (3219.0) -
現在のユーザまたは指定されたユーザのホームディレクトリを返します。
...れたユーザのホームディレクトリを返します。
Dir.home や Dir.home("root") は
File.expand_path("~") や File.expand_path("~root") と
ほぼ同じです。
//emlist[例][ruby]{
Dir.home # => "/home/vagrant"
Dir.home("root") # => "/root"
//}
@see File.expand_path......されたユーザのホームディレクトリを返します。
Dir.home や Dir.home("root") は
File.expand_path("~") や File.expand_path("~root") と
ほぼ同じです。
//emlist[例][ruby]{
Dir.home # => "/home/vagrant"
Dir.home("root") # => "/root"
//}
@see File.expand_path... -
Dir
. home(user) -> String | nil (3219.0) -
現在のユーザまたは指定されたユーザのホームディレクトリを返します。
...れたユーザのホームディレクトリを返します。
Dir.home や Dir.home("root") は
File.expand_path("~") や File.expand_path("~root") と
ほぼ同じです。
//emlist[例][ruby]{
Dir.home # => "/home/vagrant"
Dir.home("root") # => "/root"
//}
@see File.expand_path......されたユーザのホームディレクトリを返します。
Dir.home や Dir.home("root") は
File.expand_path("~") や File.expand_path("~root") と
ほぼ同じです。
//emlist[例][ruby]{
Dir.home # => "/home/vagrant"
Dir.home("root") # => "/root"
//}
@see File.expand_path...