るりまサーチ

最速Rubyリファレンスマニュアル検索!
18件ヒット [1-18件を表示] (0.030秒)
トップページ > クエリ:FALSE[x] > クエリ:NIL[x] > クラス:Shell::CommandProcessor[x]

別のキーワード

  1. object false
  2. _builtin false
  3. rb_false
  4. false
  5. false object

ライブラリ

キーワード

検索結果

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

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

...ルへのパスを指定します。

@param file2 文字列でファイルへのパスを指定します。

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...

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

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

...ルへのパスを指定します。

@param file2 文字列でファイルへのパスを指定します。

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...

Shell::CommandProcessor#foreach(path = nil, &block) -> () (108.0)

pathがファイルなら, File#foreach pathがディレクトリなら, Dir#foreach の動作をします。

...なら, File#foreach
pathがディレクトリなら, Dir#foreach
の動作をします。

@param path ファイルもしくはディレクトリのパスを文字列で指定します。

使用例
require 'shell'
Shell.verbose = false
sh = Shell.new
sh.foreach("/tmp"){|f|
puts f
}...