module TrRMIte::EventHandling::DSL

Public Class Methods

included(base) click to toggle source
# File lib/TrRMIte/event_handling.rb, line 5
def self.included(base)
  class << base
    attr_reader :event_handlers
  end
  base.extend(ClassMethods)
end

Public Instance Methods

handler_for(event) click to toggle source
# File lib/TrRMIte/event_handling.rb, line 37
def handler_for(event)
  self.class.handler_for(event)
end
handles?(event) click to toggle source
# File lib/TrRMIte/event_handling.rb, line 41
def handles?(event)
  self.class.handles?(event)
end