Class: MongoHTTPSync::Parser
- Inherits:
-
Object
- Object
- MongoHTTPSync::Parser
- Defined in:
- lib/mongo_http_sync/parser.rb
Defined Under Namespace
Classes: Handler, ReadpartialWorkaround
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, ReadpartialWorkaround.new(io)) handler.ndocs end |