From: nobu@... Date: 2015-06-06T03:57:33+00:00 Subject: [ruby-core:69480] [Ruby trunk - Feature #11227] [Feedback] May it be possible to add some symbols to IO.new() ? Issue #11227 has been updated by Nobuyoshi Nakada. Description updated Status changed from Open to Feedback Or maybe `STDIN.dup`? ---------------------------------------- Feature #11227: May it be possible to add some symbols to IO.new() ? https://bugs.ruby-lang.org/issues/11227#change-52781 * Author: Robert A. Heiler * Status: Feedback * Priority: Low * Assignee: ---------------------------------------- Hello. `IO.new()` wants a number. ~~~ruby io = IO.new(1) ~~~ Would it be possible or desirable to also allow symbols? Such as: ~~~ruby io = IO.new(:stdout) ~~~~ The `:stdout` seems to make it slightly easier for me to remember which of the variants (0,1,2) is which (`stdin`, `stdout`, `stderr`). -- https://bugs.ruby-lang.org/