Sha256: 70e3fbcdcb87618dd3daf9c0a35e09ae1288a35001f1a80b95c62615f1536a60

Contents?: true

Size: 392 Bytes

Versions: 26

Compression:

Stored size: 392 Bytes

Contents

module Yajl
  module Bzip2
    # A wrapper around the Bzip2::Writer class for easier JSON stream encoding
    class StreamWriter < ::Bzip2::Writer

      # A helper method for encoding to a bzip2-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

26 entries across 26 versions & 9 rubygems

Version Path
fluent-plugin-nuopenlineage-light-0.1.0 vendor/bundle/ruby/3.3.0/gems/yajl-ruby-1.4.3/lib/yajl/bzip2/stream_writer.rb
fluent-plugin-openlineage-light-0.1.4 vendor/bundle/ruby/3.3.0/gems/yajl-ruby-1.4.3/lib/yajl/bzip2/stream_writer.rb
fluent-plugin-openlineage-light-0.1.3 vendor/bundle/ruby/3.3.0/gems/yajl-ruby-1.4.3/lib/yajl/bzip2/stream_writer.rb
fluent-plugin-openlineage-0.1.0 vendor/bundle/ruby/3.3.0/gems/yajl-ruby-1.4.3/lib/yajl/bzip2/stream_writer.rb
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/yajl-ruby-1.4.3/lib/yajl/bzip2/stream_writer.rb
yajl-ruby-1.4.3 lib/yajl/bzip2/stream_writer.rb
yajl-ruby-1.4.2 lib/yajl/bzip2/stream_writer.rb
yajl-ruby-1.4.1 lib/yajl/bzip2/stream_writer.rb
yajl-ruby-1.4.0 lib/yajl/bzip2/stream_writer.rb
yajl-ruby-1.2.3 lib/yajl/bzip2/stream_writer.rb
yajl-ruby-1.3.1 lib/yajl/bzip2/stream_writer.rb
fluent-plugin-detect-memb-exceptions-0.0.2 vendor/bundle/ruby/2.0.0/gems/yajl-ruby-1.3.0/lib/yajl/bzip2/stream_writer.rb
fluent-plugin-detect-memb-exceptions-0.0.1 vendor/bundle/ruby/2.0.0/gems/yajl-ruby-1.3.0/lib/yajl/bzip2/stream_writer.rb
yajl-ruby-1.2.2 lib/yajl/bzip2/stream_writer.rb
yajl-ruby-1.3.0 lib/yajl/bzip2/stream_writer.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/yajl-ruby-1.2.1/lib/yajl/bzip2/stream_writer.rb
yajl-ruby-1.2.1 lib/yajl/bzip2/stream_writer.rb
yajl-ruby-1.2.0 lib/yajl/bzip2/stream_writer.rb
yajl-ruby-zenjoy-1.1.0 lib/yajl/bzip2/stream_writer.rb
yajl-ruby-maglev--1.1.0 lib/yajl/bzip2/stream_writer.rb