Feature #7103

Improved IO#reopen which accepts optional hash

Added by Masaki Matsushita over 1 year ago. Updated over 1 year ago.

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

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 modeenc() and rbiomodeenc() 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 1 year ago

io.c: improved IO#reopen

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

History

#1 Updated by Nobuyoshi Nakada over 1 year 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 (rbioreopen): improvement to accept optional arguments. a patch by Glass_saga (Masaki Matsushita) in . [Feature #7103]

Also available in: Atom PDF