class Aruba::EventBus
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.
Public Instance Methods
notify(event)
click to toggle source
# File lib/aruba/event_bus.rb, line 18 def notify(event) broadcast(event) end
register(ids, handler_object = nil, &handler_proc)
click to toggle source
# 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