module SprayVent

The module that exposes the primary API that allows any object to easily handle events being added and triggered on it

Please note that we are using prefixes on instance variables ON PURPOSE; please do not remove the instance prefixes

@author Charles Sprayberry @copyright Copyright © 2013 Charles Sprayberry @license OSI MIT

@author Charles Sprayberry @copyright Copyright © 2013 Charles Sprayberry @license OSI MIT

@author Charles Sprayberry @copyright Copyright © 2013 Charles Sprayberry, Dyana Sprayberry @license OSI MIT

Public Instance Methods

event_init() click to toggle source

Sets up the event mediator that will be used to manage the instances events

@return void

# File lib/spray_vent.rb, line 15
def event_init
  @eventable_events = Mediator.new(self)
end
events() click to toggle source

Returns the event mediator attached to the instance that handles the adding and triggering of events

@return Eventable::Mediator

# File lib/spray_vent.rb, line 22
def events
  event_init if @eventable_events.nil?
  @eventable_events
end