Allow IO#reopen to take a block
io.c (rb_io_reopen): take a block and ensure the IO closed [Feature #2631]
test/ruby/test_io.rb: add a test
NEWS: add an entry for this change
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Allow IO#reopen to take a block
io.c (rb_io_reopen): take a block and ensure the IO closed
[Feature #2631]
test/ruby/test_io.rb: add a test
NEWS: add an entry for this change
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e