From: Motohiro KOSAKI Date: 2011-05-21T22:22:16+09:00 Subject: [ruby-core:36367] [Ruby 1.9 - Feature #4742] Allow for File.open('yo', :mode => File::WRONLY|File::TRUNC|File::CREAT) Issue #4742 has been updated by Motohiro KOSAKI. Category set to core Assignee set to Motohiro KOSAKI Target version set to 1.9.3 ---------------------------------------- Feature #4742: Allow for File.open('yo', :mode => File::WRONLY|File::TRUNC|File::CREAT) http://redmine.ruby-lang.org/issues/4742 Author: Roger Pack Status: Closed Priority: Normal Assignee: Motohiro KOSAKI Category: core Target version: 1.9.3 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