Sha256: 6212625a3c44ff25fdf1a23d5f356fffd95a4039ce5c69b3ecbedf8539c958ca
Contents?: true
Size: 386 Bytes
Versions: 50
Compression:
Stored size: 386 Bytes
Contents
# encoding: UTF-8 module Yajl module Gzip # Wraper around the Zlib::GzipWriter class class StreamWriter < ::Zlib::GzipWriter # A helper method for one-off encoding to a gzip-compressed stream # # Look up Yajl::Encoder#encode for parameter documentation def self.encode(obj, io) Yajl::Encoder.new.encode(obj, new(io)) end end end end
Version data entries
50 entries across 50 versions & 6 rubygems