Module: Yajl::Stream

Defined in:
lib/yajl.rb

Overview

DEPRECATED - See Yajl::Parser and Yajl::Encoder

Class Method Summary collapse

Class Method Details

.encode(obj, io) ⇒ Object

DEPRECATED - See Yajl::Encoder



77
78
79
80
# File 'lib/yajl.rb', line 77

def self.encode(obj, io)
  STDERR.puts "WARNING: Yajl::Stream has be deprecated and will most likely be gone in the next release. Use the Yajl::Encoder class instead."
  Encoder.new.encode(obj, io)
end

.parse(io) ⇒ Object

DEPRECATED - See Yajl::Parser



71
72
73
74
# File 'lib/yajl.rb', line 71

def self.parse(io)
  STDERR.puts "WARNING: Yajl::Stream has be deprecated and will most likely be gone in the next release. Use the Yajl::Parser class instead."
  Parser.new.parse(io)
end