1件ヒット
[1-1件を表示]
(0.021秒)
クラス
検索結果
-
Shell
:: CommandProcessor # transact { . . . } -> object (310.0) -
ブロック中で shell を self として実行します。
ブロック中で shell を self として実行します。
例:
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact{
system("ls", "-l") | head > STDOUT
# transact の中では、
# sh.system("ls", "-l") | sh.head > STDOUT と同じとなる。
}