instance method
Pathname#binwrite
(::String, ?::Integer offset, ?mode: ::Integer | ::String, ?flags: ::Integer, ?external_encoding: ::encoding, ?internal_encoding: ::encoding, ?encoding: ::encoding, ?textmode: ::boolish, ?binmode: ::boolish, ?autoclose: ::boolish, ?invalid: :replace ?, ?undef: :replace ?, ?replace: ::String, ?fallback: ::Hash[::String, ::String] | ::Proc | ::Method, ?xml: :text | :attr, ?universal_newline: true, ?cr_newline: true, ?crlf_newline: true) -> ::Integer
binwrite(...)
pathname_builtin.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/pathname_builtin.rb, line 895
def binwrite(...) File.binwrite(@path, ...) end
Writes contents to the file, opening it in binary mode.
See File.binwrite.