class DealWithIt::Handler

Constants

DEFAULT_EXCEPTION_HANDLER

Attributes

callback[R]
exception[R]

Public Class Methods

deal(exception, with: DEFAULT_EXCEPTION_HANDLER) click to toggle source
# File lib/deal_with_it/handler.rb, line 8
def self.deal(exception, with: DEFAULT_EXCEPTION_HANDLER)
  @handler = new(exception, with)
end
descendants() click to toggle source
# File lib/deal_with_it/handler.rb, line 12
def self.descendants
  ObjectSpace.each_object(Class).select { |klass| klass < self }
end
new(exception, with) click to toggle source
# File lib/deal_with_it/handler.rb, line 18
def initialize(exception, with)
  @exception = exception
  @callback  = with
end