Module: Yajl::Stream
- Defined in:
- lib/yajl.rb
Overview
DEPRECATED - See Yajl::Parser and Yajl::Encoder
Class Method Summary collapse
-
.encode(obj, io) ⇒ Object
DEPRECATED - See Yajl::Encoder.
-
.parse(io) ⇒ Object
DEPRECATED - See Yajl::Parser.
Class Method Details
.encode(obj, io) ⇒ Object
DEPRECATED - See Yajl::Encoder
75 76 77 78 |
# File 'lib/yajl.rb', line 75 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
69 70 71 72 |
# File 'lib/yajl.rb', line 69 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 |