Issue #4742 has been reported by Roger Pack.

----------------------------------------
Bug #4742: Allow for File.open('yo', :mode => File::WRONLY|File::TRUNC|File::CREAT)
http://redmine.ruby-lang.org/issues/4742

Author: Roger Pack
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: 1.9.3 mingw


Currently we have these options for File.open:

File.open('yo', 'w')
File.open('yo',  File::WRONLY|File::TRUNC|File::CREAT)
File.open('yo', :mode => 'w')

but not
File.open('yo', :mode => File::WRONLY|File::TRUNC|File::CREAT)

Which seemed a bit surprising to me, so making a feature request for it.
Cheers!
-roger-



-- 
http://redmine.ruby-lang.org