るりまサーチ

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

別のキーワード

  1. cgi close
  2. _builtin close
  3. cgi/session close
  4. zlib close
  5. logger close

ライブラリ

クラス

検索結果

StringIO#close_read -> nil (21108.0)

自身に対する読み取りを禁止します。

...自身に対する読み取りを禁止します。

@
raise IOError 自身がすでに読み取り不可だった場合に発生します。...

IO#close_write -> nil (6125.0)

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

...


@
raise IOError 自身が書き込み用にオープンされていなければ発生します。

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

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

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

@
raise IOError 自身が書き込み用にオープンされていなければ発生します。

@
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...