[ruby-cvs:66320] glass:r59142 (trunk): Allow IO#reopen to take a block

glass at ruby-lang.org glass at ruby-lang.org
Thu Jun 22 15:50:32 JST 2017


glass	2017-06-22 15:50:32 +0900 (Thu, 22 Jun 2017)

  New Revision: 59142

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59142

  Log:
    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

  Modified files:
    trunk/NEWS
    trunk/io.c
    trunk/test/ruby/test_io.rb


More information about the ruby-cvs mailing list