Project

General

Profile

Actions

Bug #5782

closed

File.binwrite doc and hash argument

Added by marcandre (Marc-Andre Lafortune) over 12 years ago. Updated about 12 years ago.

Status:
Closed
Target version:
-
ruby -v:
r34081
Backport:
[ruby-core:<unknown>]

Description

The doc for File.binwrite doesn't mention the possibility of a fourth argument (option hash), unlike File.write. Judging from the code, this looks like an oversight.

Can we get confirmation that it does accept a fourth parameter and that the doc should be updated?

I would personally simplify the rdoc to state that it File.binwrite does exactly the same as File.write except that it opens the file in binary mode.

Noticed by Konstantin Haase.

Thanks,

Marc-Andre

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0