class Shift::ZlibReader
Public Class Methods
keep_extension?()
click to toggle source
# File lib/shift/i/zlib_reader.rb, line 4 def self.keep_extension? false end
new()
click to toggle source
# File lib/shift/i/zlib_reader.rb, line 12 def initialize require 'zlib' require 'stringio' end
target_format()
click to toggle source
# File lib/shift/i/zlib_reader.rb, line 8 def self.target_format false end
Public Instance Methods
process(data)
click to toggle source
# File lib/shift/i/zlib_reader.rb, line 17 def process(data) gz = Zlib::GzipReader.new(StringIO.new(data)) gz.read end