Class: LittleGhost::Graph::EventSink
- Inherits:
-
Data
- Object
- Data
- LittleGhost::Graph::EventSink
- Defined in:
- lib/little_ghost/graph.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#consumer ⇒ Object
readonly
Returns the value of attribute consumer.
Instance Method Summary collapse
Instance Attribute Details
#consumer ⇒ Object (readonly)
Returns the value of attribute consumer
39 40 41 |
# File 'lib/little_ghost/graph.rb', line 39 def consumer @consumer end |
Instance Method Details
#<<(event) ⇒ Object
40 41 42 43 |
# File 'lib/little_ghost/graph.rb', line 40 def <<(event) consumer.call(event) self end |