Class: Brainstorm::Neuron

Inherits:
Object
  • Object
show all
Includes:
Unobservable::Support
Defined in:
lib/brainstorm.rb

Direct Known Subclasses

Aggregator, Debouncer, Forwarder, Selector

Instance Method Summary collapse

Instance Method Details

#>>(callable) ⇒ Object



68
69
70
71
# File 'lib/brainstorm.rb', line 68

def >>(callable)
  self.fired.register {|i| callable.call(i) }
  return callable
end

#call(item) ⇒ Object

Raises:

  • (NotImplementedError)


64
65
66
# File 'lib/brainstorm.rb', line 64

def call(item)
  raise NotImplementedError, "Neuron is an abstact base class."
end