Skip to content
instance method

Pathname#write

(::String content, ?::Integer offset, ?mode: ::Integer | ::String, ?flags: ::Integer, ?external_encoding: ::encoding, ?internal_encoding: ::encoding, ?encoding: ::encoding, ?textmode: ::boolish, ?binmode: ::boolish, ?autoclose: ::boolish) -> ::Integer
write(...)

Writes contents to the file. See File.write.

See also #writable_real? #zero? #writable? also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0