るりまサーチ

最速Rubyリファレンスマニュアル検索!
6件ヒット [1-6件を表示] (0.455秒)
トップページ > クエリ:IO.new[x] > クエリ:allocation_sourceline[x] > クエリ:compile_option=[x] > クラス:Shell::CommandProcessor[x]

別のキーワード

  1. _builtin new
  2. _builtin inspect
  3. _builtin []
  4. _builtin to_s
  5. _builtin each

ライブラリ

検索結果

Shell::CommandProcessor#out(dev = STDOUT, &block) -> () (13.0)

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