Module: EventDispatcher::Event

Defined in:
lib/event_dispatcher/event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#stop_propagationObject

Returns the value of attribute stop_propagation.



3
4
5
# File 'lib/event_dispatcher/event.rb', line 3

def stop_propagation
  @stop_propagation
end

Instance Method Details

#initializeObject

A listener can prevent any other listeners from being called.



5
6
7
# File 'lib/event_dispatcher/event.rb', line 5

def initialize
   @stop_propagation = false
end