Class: MongoHTTPSync::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/mongo_http_sync/parser.rb

Defined Under Namespace

Classes: Handler

Class Method Summary collapse

Class Method Details

.parse(io, &block) ⇒ Object



5
6
7
8
9
# File 'lib/mongo_http_sync/parser.rb', line 5

def self.parse(io, &block)
  handler = Handler.new(block)
  Oj.sc_parse(handler, io)
  handler.ndocs
end