Class: Ronin::Support::Compression::Gzip::Reader
- Inherits:
-
Zlib::GzipReader
- Object
- Zlib::GzipReader
- Ronin::Support::Compression::Gzip::Reader
- Defined in:
- lib/ronin/support/compression/gzip/reader.rb
Overview
Handles reading gzip compressed data.
Instance Method Summary collapse
-
#initialize(io_or_buffer, mode: 'r') ⇒ Reader
constructor
Initializes the gzip writer.
Constructor Details
#initialize(io_or_buffer, mode: 'r') ⇒ Reader
Initializes the gzip writer.
57 58 59 60 61 62 63 64 |
# File 'lib/ronin/support/compression/gzip/reader.rb', line 57 def initialize(io_or_buffer, mode: 'r') io = case io_or_buffer when String then StringIO.new(io_or_buffer,mode) else io_or_buffer end super(io) end |