るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.007秒)
トップページ > クエリ:true[x] > ライブラリ:shell/command-processor[x]

別のキーワード

  1. object true
  2. _builtin true
  3. rb_true
  4. true object

クラス

キーワード

検索結果

Shell::CommandProcessor#[](command, file1, file2 = nil) -> bool | Time | Integer | nil (32.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...ell'
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"] # => true

@see Kernel.#test, FileTest...

Shell::CommandProcessor#test(command, file1, file2 = nil) -> bool | Time | Integer | nil (32.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...ell'
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"] # => true

@see Kernel.#test, FileTest...