るりまサーチ

最速Rubyリファレンスマニュアル検索!
6008件ヒット [6001-6008件を表示] (0.056秒)
トップページ > クエリ:encoding[x]

別のキーワード

  1. stringio set_encoding
  2. _builtin set_encoding
  3. _builtin encoding
  4. rss encoding
  5. rss encoding=

ライブラリ

オブジェクト

キーワード

検索結果

<< < ... 59 60 61 >>

IO.popen(env, "-", mode = "r", opt={}) {|io| ... } -> object (2.0)

第一引数に文字列 "-" が指定された時、fork(2) を 行い子プロセスの標準入出力との間にパイプラインを確立します。 親プロセスでは IO オブジェクトを返し、子プロセスでは nil を返します。

第一引数に文字列 "-" が指定された時、fork(2) を
行い子プロセスの標準入出力との間にパイプラインを確立します。
親プロセスでは IO オブジェクトを返し、子プロセスでは
nil を返します。

io = IO.popen("-", "r+")
if io # parent
io.puts "foo"
p io.gets # => "child output: foo\n"
io.close
else # child
s = gets
print "child output: " + s
...
<< < ... 59 60 61 >>