Forum: Ruby-core [ruby-trunk - Feature #7067][Open] IO#reopen should accept File::Constants

Posted by Glass_saga (Masaki Matsushita) (Guest)
on 2012-09-25 16:59
(Received via mailing list)
Issue #7067 has been reported by Glass_saga (Masaki Matsushita).

----------------------------------------
Feature #7067: IO#reopen should accept File::Constants
https://bugs.ruby-lang.org/issues/7067

Author: Glass_saga (Masaki Matsushita)
Status: Open
Priority: Normal
Assignee:
Category: core
Target version: 2.0.0


Hello,

I think IO#reopen should accept File::Constants because it is difficult 
to get mode string from File::Constants.
I have attached a patch.
Posted by Nobuyoshi Nakada (nobu)
on 2012-09-26 10:13
(Received via mailing list)
Issue #7067 has been updated by nobu (Nobuyoshi Nakada).

Assignee set to Glass_saga (Masaki Matsushita)

Seems fine to me.
----------------------------------------
Feature #7067: IO#reopen should accept File::Constants
https://bugs.ruby-lang.org/issues/7067#change-29745

Author: Glass_saga (Masaki Matsushita)
Status: Open
Priority: Normal
Assignee: Glass_saga (Masaki Matsushita)
Category: core
Target version: 2.0.0


Hello,

I think IO#reopen should accept File::Constants because it is difficult 
to get mode string from File::Constants.
I have attached a patch.
Posted by Glass_saga (Masaki Matsushita) (Guest)
on 2012-09-27 16:35
(Received via mailing list)
Issue #7067 has been updated by Glass_saga (Masaki Matsushita).

File patch.diff added

Sorry, I made a mistake.
The patch is untabified code.
I have attached tabified one.
----------------------------------------
Feature #7067: IO#reopen should accept File::Constants
https://bugs.ruby-lang.org/issues/7067#change-29763

Author: Glass_saga (Masaki Matsushita)
Status: Open
Priority: Normal
Assignee: Glass_saga (Masaki Matsushita)
Category: core
Target version: 2.0.0


Hello,

I think IO#reopen should accept File::Constants because it is difficult 
to get mode string from File::Constants.
I have attached a patch.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.