lib/io_streams/encode/reader.rb in iostreams-1.2.1 vs lib/io_streams/encode/reader.rb in iostreams-1.3.0
- old
+ new
@@ -71,10 +71,10 @@
end
# EOF reached?
return unless block
- block = block.encode(@encoding, @encoding_options) unless block.encoding == @encoding
+ block = block.encode(@encoding, **@encoding_options) unless block.encoding == @encoding
block = @cleaner.call(block, @replace) if @cleaner
block
end
private