Improved IO#reopen which accepts optional hash
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.
#1 Updated by nobu (Nobuyoshi Nakada) over 4 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]