Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > 組み込みライブラリ > IOクラス > closed?

instance method IO#closed?

closed? -> bool[permalink][rdoc]

ポートがクローズされている時に真を返します。