るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.063秒)

別のキーワード

  1. rexml/document write
  2. _builtin write
  3. io write
  4. stringio close_write
  5. stringio closed_write?

ライブラリ

クラス

検索結果

IO#close_write -> nil (24233.0)

書き込み用の IO を close します。

...ンされていなければ発生します。

@raise Errno::EXXX close に失敗した場合に発生します。

//emlist[例][ruby]{
f = IO.popen("/bin/sh","r+") do |f|
f.close_write
# f.print "nowhere" # => IOError: not opened for writing
end

//}

@see IO#close, IO#closed?, IO#close_read...

IO#close_read -> nil (31.0)

読み込み用の IO を close します。主にパイプや読み書き両用に作成し た IO オブジェクトで使用します。

...オープンされていなければ発生します。

@raise Errno::EXXX close に失敗した場合に発生します。

//emlist[例][ruby]{
IO.popen("/bin/sh","r+") do |f|
f.close_read
# f.readlines # => IOError: not opened for reading
end

//}

@see IO#close, IO#closed?, IO#close_write...