るりまサーチ

最速Rubyリファレンスマニュアル検索!
4件ヒット [1-4件を表示] (0.013秒)
トップページ > クラス:Dir[x] > クエリ:File.expand_path[x]

ライブラリ

検索結果

Dir.home -> String | nil (19)

現在のユーザまたは指定されたユーザのホームディレクトリを返します。

...または指定されたユーザのホームディレクトリを返します。

Dir
.home や Dir.home("root") は
File.expand_path
("~") や File.expand_path("~root") と
ほぼ同じです。

@see File.expand_path...

Dir.home(user) -> String | nil (19)

現在のユーザまたは指定されたユーザのホームディレクトリを返します。

...または指定されたユーザのホームディレクトリを返します。

Dir
.home や Dir.home("root") は
File.expand_path
("~") や File.expand_path("~root") と
ほぼ同じです。

@see File.expand_path...