test(command, file1, file2 = nil) -> bool | Time | Integer | nil
[permalink][rdoc]self[command, file1, file2 = nil] -> bool | Time | Integer | nil
Kernel.#test や FileTest のメソッドに処理を委譲します。
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"] # => true
[SEE_ALSO] Kernel.#test, FileTest