222件ヒット
[201-222件を表示]
(0.114秒)
別のキーワード
ライブラリ
- shell (222)
キーワード
- [] (6)
- append (6)
- cd (6)
- chdir (6)
-
check
_ point (6) - chown (6)
-
command
_ processor (6) - cwd (6)
- dir (6)
-
finish
_ all _ jobs (6) - foreach (6)
- ftype (6)
- getwd (6)
- glob (6)
- grpowned? (6)
- mkdir (6)
- notify (6)
- open (6)
- pipe? (6)
- popd (6)
- popdir (6)
-
process
_ controller (6) - pushd (6)
- pushdir (6)
- pwd (6)
- readlink (6)
-
record
_ separator (6) -
record
_ separator= (6) - rmdir (6)
- split (6)
- system (6)
-
system
_ path (6) -
system
_ path= (6) - test (6)
- truncate (6)
- unlink (6)
検索結果
先頭4件
-
Shell
# test(command , file1 , file2 = nil) -> bool | Time | Integer | nil (32.0) -
Kernel.#test や FileTest のメソッドに処理を委譲します。
...@param command 数値、またはサイズが 1 の文字列の場合は Kernel.#test に処理委譲します。
2 文字以上の文字列の場合は FileTest のメソッドとして実行します。
@param file1 文字列でファイルへのパスを指定します。
@para......指定します。
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[:exists?, "foo"] # => true
p sh["exists?", "foo"] # => tru... -
Shell
# cwd -> String (8.0) -
カレントディレクトリのパスを文字列で返します。
...カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"... -
Shell
# dir -> String (8.0) -
カレントディレクトリのパスを文字列で返します。
...カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"... -
Shell
# getwd -> String (8.0) -
カレントディレクトリのパスを文字列で返します。
...カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"...