Project

General

Profile

Actions

Feature #4742

closed

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

Added by rogerdpack (Roger Pack) almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
[ruby-core:36338]

Description

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-

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0