From: Marc-Andre Lafortune Date: 2012-02-14T15:19:14+09:00 Subject: [ruby-core:42592] [ruby-trunk - Bug #5782] File.binwrite doc and hash argument Issue #5782 has been updated by Marc-Andre Lafortune. For some reason, this bug report was never posted on the mailing list: 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 ---------------------------------------- Bug #5782: File.binwrite doc and hash argument https://bugs.ruby-lang.org/issues/5782 Author: Marc-Andre Lafortune Status: Open Priority: Normal Assignee: Category: core Target version: ruby -v: r34081 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 -- http://bugs.ruby-lang.org/