lib/io_streams/encode/reader.rb in iostreams-1.4.0 vs lib/io_streams/encode/reader.rb in iostreams-1.5.0
- old
+ new
@@ -76,11 +76,9 @@
block = block.encode(@encoding, **@encoding_options) unless block.encoding == @encoding
block = @cleaner.call(block, @replace) if @cleaner
block
end
- private
-
def self.extract_cleaner(cleaner)
return if cleaner.nil?
case cleaner
when Symbol