Flowdock
method

gunzip

Importance_1
v2_4_6 - Show latest stable - 0 notes - Class: Zlib
gunzip(p1) public

Decode the given gzipped string.

This method is almost equivalent to the following code:

def gunzip(string)
  sio = StringIO.new(string)
  gz = Zlib::GzipReader.new(sio, encoding: Encoding::ASCII_8BIT)
  gz.read
ensure
  gz&.close
end

See also Zlib.gzip

Show source
Register or log in to add new notes.