Module: SprayVent
- Defined in:
- lib/spray_vent.rb,
lib/spray_vent/event.rb,
lib/spray_vent/mediator.rb,
lib/spray_vent/errors/invalid_handler_error.rb
Overview
Defined Under Namespace
Classes: Event, InvalidHandlerError, Mediator
Instance Method Summary collapse
-
#event_init ⇒ Object
Sets up the event mediator that will be used to manage the instances events.
-
#events ⇒ Object
Returns the event mediator attached to the instance that handles the adding and triggering of events.
Instance Method Details
#event_init ⇒ Object
Sets up the event mediator that will be used to manage the instances events
15 16 17 |
# File 'lib/spray_vent.rb', line 15 def event_init @eventable_events = Mediator.new(self) end |
#events ⇒ Object
Returns the event mediator attached to the instance that handles the adding and triggering of events
22 23 24 25 |
# File 'lib/spray_vent.rb', line 22 def events event_init if @eventable_events.nil? @eventable_events end |