From: Yusuke ENDOH Date: 2011-05-30T22:29:54+09:00 Subject: [ruby-core:36584] Re: [Ruby 1.9 - Feature #1081] add File::write() convenience method Hello, 2011/5/30 Shota Fukumori : > My Implementation has been completed File.write, binwrite. Good work. But File.binwrite does not accept an optional hash while write does. $ rm -f /tmp/x && ./ruby -e 'File.write("/tmp/x", "foo", perm: 0700)' "foo" $ rm -f /tmp/x && ./ruby -e 'File.binwrite("/tmp/x", "foo", perm: 0700)' -e:1:in `binwrite': can't convert Hash into Integer (TypeError) from -e:1:in `
' -- Yusuke Endoh