Project

General

Profile

Actions

Feature #7103

closed

Improved IO#reopen which accepts optional hash

Added by Glass_saga (Masaki Matsushita) about 12 years ago. Updated about 12 years ago.

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

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.


Files

patch.diff (3.04 KB) patch.diff Glass_saga (Masaki Matsushita), 10/02/2012 11:51 PM
Actions #1

Updated by nobu (Nobuyoshi Nakada) about 12 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 [ruby-core:47806].
    [Feature #7103]
Actions

Also available in: Atom PDF

Like0
Like0