1件ヒット
[1-1件を表示]
(0.097秒)
トップページ > :IO.new > :dump > :generate > :getc > :ungetc > :NEWS for Ruby 2.1.0 > :shell/command-processor > :2.5.0
別のキーワード
クラス
検索結果
-
Shell
:: CommandProcessor # out(dev = STDOUT , &block) -> () (43.0) -
Shell#transact を呼び出しその結果を dev に出力します。
Shell#transact を呼び出しその結果を dev に出力します。
@param dev 出力先をIO オブジェクトなどで指定します。
@param block transact 内部で実行するシェルを指定します。
使用例:
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
File.open("out.txt", "w"){ |fp|
sh.out(fp) {
system("ls", "-l") | head("-n 3")
}
}