Sha256: f7c754bd266983d323ed2b214354d48dd0ba5ee4b4b783c4f6e3146321dbfff6

Contents?: true

Size: 339 Bytes

Versions: 13

Compression:

Stored size: 339 Bytes

Contents

$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../..')
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../lib')

require 'yajl'

obj = {
  :a_test => "of encoding directly to an IO stream",
  :which_will => "simply return a string when finished",
  :as_easy_as => 123
}

Yajl::Encoder.encode(obj, STDOUT)

Version data entries

13 entries across 13 versions & 6 rubygems

Version Path
fluent-plugin-nuopenlineage-light-0.1.0 vendor/bundle/ruby/3.3.0/gems/yajl-ruby-1.4.3/examples/encoding/to_an_io.rb
fluent-plugin-openlineage-light-0.1.4 vendor/bundle/ruby/3.3.0/gems/yajl-ruby-1.4.3/examples/encoding/to_an_io.rb
fluent-plugin-openlineage-light-0.1.3 vendor/bundle/ruby/3.3.0/gems/yajl-ruby-1.4.3/examples/encoding/to_an_io.rb
fluent-plugin-openlineage-0.1.0 vendor/bundle/ruby/3.3.0/gems/yajl-ruby-1.4.3/examples/encoding/to_an_io.rb
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/yajl-ruby-1.4.3/examples/encoding/to_an_io.rb
yajl-ruby-1.4.3 examples/encoding/to_an_io.rb
yajl-ruby-1.4.2 examples/encoding/to_an_io.rb
yajl-ruby-1.4.1 examples/encoding/to_an_io.rb
yajl-ruby-1.4.0 examples/encoding/to_an_io.rb
yajl-ruby-1.3.1 examples/encoding/to_an_io.rb
fluent-plugin-detect-memb-exceptions-0.0.2 vendor/bundle/ruby/2.0.0/gems/yajl-ruby-1.3.0/examples/encoding/to_an_io.rb
fluent-plugin-detect-memb-exceptions-0.0.1 vendor/bundle/ruby/2.0.0/gems/yajl-ruby-1.3.0/examples/encoding/to_an_io.rb
yajl-ruby-1.3.0 examples/encoding/to_an_io.rb