From: Roger Pack Date: 2011-05-20T00:13:00+09:00 Subject: Re: File.open options hash "mode" as int > opt: hash for specifying mode by name. I guess this is why. I just don't see quite *why* it requires mode by name in opts, but accepts it by int when given as a parameter. But that makes sense. A few more notes. > IO.open(fd, mode_string="r" [, opt] ) → io Yeah, interestingly, this doesn't look at all like File.open('filename') so...the docs just lack the most common usage of File.open apparently? Odd. -- Posted via http://www.ruby-forum.com/.