エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Feature #10718: IO#close should not raise IOError on closed IO objects. - Ruby master - Ruby Issue Tracking System
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Feature #10718: IO#close should not raise IOError on closed IO objects. - Ruby master - Ruby Issue Tracking System
I'd like to change IO#close. It should not raise IOError on closed IO objects. We sometimes invok... I'd like to change IO#close. It should not raise IOError on closed IO objects. We sometimes invoke IO#close only when the IO object is not closed as: f.close if !f.closed? If this issue is accepted, we can write it simply as follows. f.close Simple grep finds many examples. Following examples are just a little excerpt. lib/webrick/server.rb: sock.close unless sock.closed? lib/pstore.rb: file.close
2015/01/16 リンク