Class: Outstream::Json::Receiver
- Inherits:
-
Object
- Object
- Outstream::Json::Receiver
- Defined in:
- lib/outstream/json.rb
Instance Method Summary collapse
- #add(objs, &block) ⇒ Object
-
#initialize(collector) ⇒ Receiver
constructor
A new instance of Receiver.
Constructor Details
#initialize(collector) ⇒ Receiver
Returns a new instance of Receiver.
54 55 56 |
# File 'lib/outstream/json.rb', line 54 def initialize(collector) @_collector = collector end |
Instance Method Details
#add(objs, &block) ⇒ Object
57 58 59 |
# File 'lib/outstream/json.rb', line 57 def add(objs, &block) @_collector.add objs, &block end |