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

instance method StringIO#closed_read?

closed_read? -> bool

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

class StringIO