lib/yajl.rb in yajl-ruby-1.3.1 vs lib/yajl.rb in yajl-ruby-1.4.0
- old
+ new
@@ -21,9 +21,16 @@
# For compatibility, has the same signature of Yajl::Encoder.encode
def self.dump(obj, *args, &block)
Encoder.encode(obj, args, &block)
end
+ class Projector
+ def initialize(stream, read_bufsize=4096)
+ @stream = stream
+ @buffer_size = read_bufsize
+ end
+ end
+
class Parser
# A helper method for parse-and-forget use-cases
#
# +io+ is the stream to parse JSON from
#