class IOStreams::Gzip::Reader
Public Class Methods
stream(input_stream, original_file_name: nil) { |io| ... }
click to toggle source
Read from a gzip stream, decompressing the contents as it is read
# File lib/io_streams/gzip/reader.rb, line 5 def self.stream(input_stream, original_file_name: nil) io = ::Zlib::GzipReader.new(input_stream) yield io ensure io&.close end