Class: Aruba::EventBus
- Inherits:
 - 
      Cucumber::Core::EventBus
      
        
- Object
 - Cucumber::Core::EventBus
 - Aruba::EventBus
 
 
- Defined in:
 - lib/aruba/event_bus.rb
 
Overview
Event bus
Implements and in-process pub-sub events broadcaster allowing multiple observers to subscribe to different events that fire as your tests are executed.
Instance Method Summary collapse
Instance Method Details
#notify(event) ⇒ Object
      18 19 20  | 
    
      # File 'lib/aruba/event_bus.rb', line 18 def notify(event) broadcast(event) end  | 
  
#register(ids, handler_object = nil, &handler_proc) ⇒ Object
      12 13 14 15 16  | 
    
      # File 'lib/aruba/event_bus.rb', line 12 def register(ids, handler_object = nil, &handler_proc) Array(ids).each do |event_id| on(event_id, handler_object, &handler_proc) end end  |