Feature #7103

Improved IO#reopen which accepts optional hash

Added by Masaki Matsushita over 2 years ago. Updated over 2 years ago.

[ruby-core:47806]
Status:Closed
Priority:Normal
Assignee:-

Description

I propose improved IO#reopen which accepts optional hash.
The new IO#reopen has the same interface as IO.open and it enables us to reopen IO with full configuration.

I have attached a patch.
I have removed mode_enc() and rb_io_mode_enc() in the patch because they are no longer used.

patch.diff Magnifier (3.04 KB) Masaki Matsushita, 10/02/2012 11:51 PM

Associated revisions

Revision 37071
Added by Nobuyoshi Nakada over 2 years ago

io.c: improved IO#reopen

  • io.c (rb_io_reopen): improvement to accept optional arguments. a patch by Glass_saga (Masaki Matsushita) in . [Feature #7103]

Revision 37071
Added by Nobuyoshi Nakada over 2 years ago

io.c: improved IO#reopen

  • io.c (rb_io_reopen): improvement to accept optional arguments. a patch by Glass_saga (Masaki Matsushita) in . [Feature #7103]

History

#1 Updated by Nobuyoshi Nakada over 2 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r37071.
Masaki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


io.c: improved IO#reopen

  • io.c (rb_io_reopen): improvement to accept optional arguments. a patch by Glass_saga (Masaki Matsushita) in . [Feature #7103]

Also available in: Atom PDF