Sha256: 623f9e034cad3913d382e8457ad61df58cbc9c7762d1b05fcad712db481f117d
Contents?: true
Size: 420 Bytes
Versions: 31
Compression:
Stored size: 420 Bytes
Contents
require 'asir' require 'zlib' module ASIR class Coder class Zlib < self attr_accessor :compression_level def _encode obj raise TypeError unless String === obj ::Zlib::Deflate.deflate(obj, @compression_level || ::Zlib::DEFAULT_COMPRESSION) end def _decode obj raise TypeError unless String === obj ::Zlib::Inflate.inflate(obj) end end end end
Version data entries
31 entries across 31 versions & 1 rubygems