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.
48 49 50 |
# File 'lib/outstream/json.rb', line 48 def initialize(collector) @_collector = collector end |
Instance Method Details
#add(objs, &block) ⇒ Object
51 52 53 |
# File 'lib/outstream/json.rb', line 51 def add(objs, &block) @_collector.add objs, &block end |