るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.029秒)
トップページ > クエリ:io[x] > ライブラリ:stringio[x] > クエリ:read[x] > クエリ:closed?[x]

別のキーワード

  1. stringio read
  2. _builtin read
  3. io read
  4. csv read
  5. tuple read

クラス

検索結果

StringIO#closed? -> bool (21127.0)

自身が既に close されていた場合に true を返します。そうでない場合は、false を返します。

...身が既に close されていた場合に true を返します。そうでない場合は、false を返します。

//emlist[例][ruby]{
require "stringio"
sio = StringIO.open("hoge")
p sio.closed? # => false
sio.close_read
p sio.closed? # => false
sio.close_write
p sio.closed? # => true
//}...