Flowdock
method

gunzip

Importance_1
Ruby latest stable (v2_5_5) - 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.