るりまサーチ

最速Rubyリファレンスマニュアル検索!
188件ヒット [101-188件を表示] (0.077秒)
トップページ > クエリ:home[x] > 種類:特異メソッド[x]

別のキーワード

  1. dir home
  2. _builtin home
  3. gem set_home
  4. rubygems set_home
  5. installer gem_home

ライブラリ

クラス

モジュール

オブジェクト

検索結果

<< < 1 2 >>

Dir.chdir -> 0 (7.0)

カレントディレクトリを path に変更します。

...カレントディレクトリを path に変更します。

path を省略した場合、環境変数 HOME または LOGDIR
が設定されていればそのディレクトリに移動します。
カレントディレクトリの変更に成功すれば 0 を返します。

ブロックが指...

Dir.chdir {|path| ... } -> object (7.0)

カレントディレクトリを path に変更します。

...カレントディレクトリを path に変更します。

path を省略した場合、環境変数 HOME または LOGDIR
が設定されていればそのディレクトリに移動します。
カレントディレクトリの変更に成功すれば 0 を返します。

ブロックが指...

Dir.chdir(path) -> 0 (7.0)

カレントディレクトリを path に変更します。

...カレントディレクトリを path に変更します。

path を省略した場合、環境変数 HOME または LOGDIR
が設定されていればそのディレクトリに移動します。
カレントディレクトリの変更に成功すれば 0 を返します。

ブロックが指...

Dir.chdir(path) {|path| ... } -> object (7.0)

カレントディレクトリを path に変更します。

...カレントディレクトリを path に変更します。

path を省略した場合、環境変数 HOME または LOGDIR
が設定されていればそのディレクトリに移動します。
カレントディレクトリの変更に成功すれば 0 を返します。

ブロックが指...

Pathname.getwd -> Pathname (7.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.pwd -> Pathname (7.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...

RbConfig.expand(val, config = CONFIG) -> String (7.0)

与えられたパスを展開します。

...与えられたパスを展開します。

RbConfig.expand("$(bindir)") # => /home/foobar/all-ruby/ruby19x/bin

@param val 展開したい変数名を Makefile に書く形式で指定します。

@param config 変数展開に使用する設定を Hash で指定します。

@see RbConfig::MA...

Shell.default_system_path -> Array (7.0)

Shellでもちいられるコマンドを検索する対象のパスを設定および、参照します。

...ire 'shell'
p Shell.default_system_path
# 例
#=> [ "/opt/local/bin", "/opt/local/sbin", "/usr/bin", "/bin", "/usr/sbin", "/sbin", "/usr/local/bin", "/usr/X11/bin", "/Users/kouya/bin"]
Shell.default_system_path = ENV["HOME"] + "/bin"
p Shell.default_system_path
# => "/Users/kouya/bin"...

Shell.default_system_path=(path) (7.0)

Shellでもちいられるコマンドを検索する対象のパスを設定および、参照します。

...ire 'shell'
p Shell.default_system_path
# 例
#=> [ "/opt/local/bin", "/opt/local/sbin", "/usr/bin", "/bin", "/usr/sbin", "/sbin", "/usr/local/bin", "/usr/X11/bin", "/Users/kouya/bin"]
Shell.default_system_path = ENV["HOME"] + "/bin"
p Shell.default_system_path
# => "/Users/kouya/bin"...
<< < 1 2 >>