Class: Ronin::Support::Compression::Gzip::Writer
- Inherits:
-
Zlib::GzipWriter
- Object
- Zlib::GzipWriter
- Ronin::Support::Compression::Gzip::Writer
- Defined in:
- lib/ronin/support/compression/gzip/writer.rb
Overview
Handles writing gzip compressed data.
Instance Method Summary collapse
-
#initialize(io_or_buffer, mode: 'w') ⇒ Writer
constructor
Initializes the gzip writer.
Constructor Details
#initialize(io_or_buffer, mode: 'w') ⇒ Writer
Initializes the gzip writer.
61 62 63 64 65 66 67 68 |
# File 'lib/ronin/support/compression/gzip/writer.rb', line 61 def initialize(io_or_buffer, mode: 'w') io = case io_or_buffer when String then StringIO.new(io_or_buffer,mode) else io_or_buffer end super(io) end |