module Is::Handler

public

Public Instance Methods

finalize() click to toggle source
public
Calls superclass method
# File lib/is/handler.rb, line 55
def finalize
  super if defined?(super)
  handlers.finalize
  self
end
handle(*events, global: false, method: nil, context: nil, &block) click to toggle source
public
# File lib/is/handler.rb, line 24
def handle(*events, global: false, method: nil, context: nil, &block)
  handlers.handle(*events, global: global, method: method, context: context, &block)
end
handling(...) { || ... } click to toggle source
public
# File lib/is/handler.rb, line 32
def handling(...)
  yield
rescue => error
  trigger(error, ...)
end
trigger(event, ...) click to toggle source
public
# File lib/is/handler.rb, line 40
def trigger(event, ...)
  @handlers.trigger(self, event, ...)
end