module Horizon::Handler

Public Instance Methods

events_handled() click to toggle source
# File lib/horizon/handler.rb, line 21
def events_handled
  self.class.events_handled
end
handle(event, *args) click to toggle source
# File lib/horizon/handler.rb, line 29
def handle(event, *args)
  self.class.handlers[event].each do |handler|
    handler.call self, *args
  end
end
handlers() click to toggle source
# File lib/horizon/handler.rb, line 25
def handlers
  @handlers ||= curry_handlers
end