Class: LittleGhost::Graph::EventSink

Inherits:
Data
  • Object
show all
Defined in:
lib/little_ghost/graph.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#consumerObject (readonly)

Returns the value of attribute consumer

Returns:

  • (Object)

    the current value of consumer



44
45
46
# File 'lib/little_ghost/graph.rb', line 44

def consumer
  @consumer
end

Instance Method Details

#<<(event) ⇒ Object



45
46
47
48
# File 'lib/little_ghost/graph.rb', line 45

def <<(event)
  consumer.call(event)
  self
end