るりまサーチ

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

別のキーワード

  1. rexml/document write
  2. _builtin gets
  3. _builtin write
  4. irb/input-method gets
  5. io write

ライブラリ

検索結果

Shell#out(dev = STDOUT, &block) -> () (13.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")
}
}...