lib/io_streams/encode/writer.rb in iostreams-1.2.1 vs lib/io_streams/encode/writer.rb in iostreams-1.3.0

- old
+ new

@@ -64,10 +64,10 @@ # end def write(data) return 0 if data.nil? data = data.to_s - block = data.encoding == @encoding ? data : data.encode(@encoding, @encoding_options) + block = data.encoding == @encoding ? data : data.encode(@encoding, **@encoding_options) block = @cleaner.call(block, @replace) if @cleaner @output_stream.write(block) end end end