Sha256: 286eef87243526e0b7fa8defa7f610795932f50d45bba12c639487b42affcd9e

Contents?: true

Size: 318 Bytes

Versions: 4

Compression:

Stored size: 318 Bytes

Contents

# encoding: UTF-8
module Yajl
  module Deflate
    # === Yajl::Deflate::StreamWriter
    class StreamWriter < ::Zlib::Deflate
      def write(str)
        deflate(str)
        str.size unless str.nil?
      end
      
      def self.encode(obj, io)
        Yajl::Stream.encode(obj, new(io))
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
brianmario-yajl-ruby-0.4.5 lib/yajl/deflate/stream_writer.rb
brianmario-yajl-ruby-0.4.6 lib/yajl/deflate/stream_writer.rb
brianmario-yajl-ruby-0.4.7 lib/yajl/deflate/stream_writer.rb
brianmario-yajl-ruby-0.4.8 lib/yajl/deflate/stream_writer.rb