Project

General

Profile

Feature #11227

Updated by nobu (Nobuyoshi Nakada) almost 9 years ago

Hello. 

 `IO.new()` 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` :stdout seems to make it slightly easier for me  
 to remember which of the variants (0,1,2) is which 
 (`stdin`, `stdout`, `stderr`). (stdin, stdout, stderr).

Back