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

Version Path
brianmario-yajl-ruby-0.5.10 lib/yajl/gzip/stream_writer.rb
brianmario-yajl-ruby-0.5.11 lib/yajl/gzip/stream_writer.rb
brianmario-yajl-ruby-0.5.12 lib/yajl/gzip/stream_writer.rb
brianmario-yajl-ruby-0.5.3 lib/yajl/gzip/stream_writer.rb
brianmario-yajl-ruby-0.5.4 lib/yajl/gzip/stream_writer.rb
brianmario-yajl-ruby-0.5.5 lib/yajl/gzip/stream_writer.rb
brianmario-yajl-ruby-0.5.6 lib/yajl/gzip/stream_writer.rb
brianmario-yajl-ruby-0.5.7 lib/yajl/gzip/stream_writer.rb
brianmario-yajl-ruby-0.5.8 lib/yajl/gzip/stream_writer.rb
brianmario-yajl-ruby-0.5.9 lib/yajl/gzip/stream_writer.rb
brianmario-yajl-ruby-0.6.0 lib/yajl/gzip/stream_writer.rb
brianmario-yajl-ruby-0.6.1 lib/yajl/gzip/stream_writer.rb
brianmario-yajl-ruby-0.6.3 lib/yajl/gzip/stream_writer.rb
jdg-yajl-ruby-0.5.12 lib/yajl/gzip/stream_writer.rb
oortle-yajl-ruby-0.5.8 lib/yajl/gzip/stream_writer.rb
yajl-ruby-0.8.3 lib/yajl/gzip/stream_writer.rb
yajl-ruby-0.8.2 lib/yajl/gzip/stream_writer.rb
yajl-ruby-0.8.1 lib/yajl/gzip/stream_writer.rb
yajl-ruby-0.8.0 lib/yajl/gzip/stream_writer.rb
yajl-ruby-0.7.9 lib/yajl/gzip/stream_writer.rb