155件ヒット
[101-155件を表示]
(0.041秒)
ライブラリ
- ビルトイン (105)
- pathname (22)
- rbconfig (11)
-
rubygems
/ installer (11) - shell (6)
クラス
- Dir (66)
- File (36)
-
Gem
:: Installer (11) - Pathname (22)
- Shell (6)
モジュール
- RbConfig (11)
オブジェクト
- ENV (3)
キーワード
-
absolute
_ path (11) - chdir (44)
-
default
_ system _ path (6) - dirname (3)
- except (3)
- getwd (11)
-
home
_ install _ warning (11) - pwd (11)
- realpath (11)
検索結果
先頭5件
-
Dir
. chdir {|path| . . . } -> object (107.0) -
カレントディレクトリを path に変更します。
...カレントディレクトリを path に変更します。
path を省略した場合、環境変数 HOME または LOGDIR
が設定されていればそのディレクトリに移動します。
カレントディレクトリの変更に成功すれば 0 を返します。
ブロックが指... -
Dir
. chdir(path) -> 0 (107.0) -
カレントディレクトリを path に変更します。
...カレントディレクトリを path に変更します。
path を省略した場合、環境変数 HOME または LOGDIR
が設定されていればそのディレクトリに移動します。
カレントディレクトリの変更に成功すれば 0 を返します。
ブロックが指... -
Dir
. chdir(path) {|path| . . . } -> object (107.0) -
カレントディレクトリを path に変更します。
...カレントディレクトリを path に変更します。
path を省略した場合、環境変数 HOME または LOGDIR
が設定されていればそのディレクトリに移動します。
カレントディレクトリの変更に成功すれば 0 を返します。
ブロックが指... -
Pathname
. getwd -> Pathname (107.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 (107.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... -
Shell
. default _ system _ path -> Array (107.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"...