Class: Zumobi::GzipReader

Inherits:
Object
  • Object
show all
Defined in:
lib/zumobi/gzip_reader.rb

Class Method Summary collapse

Class Method Details

.un_gzip(string) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/zumobi/gzip_reader.rb', line 6

def self.un_gzip(string)
  strio = StringIO.open(string, 'r')
  gz = Zlib::GzipReader.new(strio)
  unzipped = gz.read
  gz.close
  unzipped
end