るりまサーチ

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

別のキーワード

  1. rbconfig ruby
  2. fiddle ruby_free
  3. fiddle build_ruby_platform
  4. rubygems/defaults ruby_engine
  5. rake ruby

ライブラリ

クラス

検索結果

IO#close_read -> nil (18150.0)

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

...


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

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

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

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

IO#close_write -> nil (6150.0)

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

...の IO を close します。


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

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

//emlist[例][ruby]{
f = IO.popen("/bin/sh","r+") do |f|
f.close_write
# f.print "nowhere" # => I...
...OError: not opened for writing
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" # => I...