Ruby 2.2.0 リファレンスマニュアル > ライブラリ一覧 > stringioライブラリ > StringIOクラス > closed_read?

instance method StringIO#closed_read?

closed_read? -> bool[permalink][rdoc]

自身に対する読み取りが禁止されているなら true を返します。そうでない場合は、false を返します。