IO#reopen should accept File::Constants
I think IO#reopen should accept File::Constants because it is difficult to get mode string from File::Constants.
I have attached a patch.
#3 Updated by Nobuyoshi Nakada about 4 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r37041.
Masaki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
io.c: IO#reopen int mode
- io.c (rb_io_reopen): accept File::Constants as well as mode string. based on the patch by Glass_saga (Masaki Matsushita) in . [Feature #7067]