module ExceptionTransformer

Constants

VERSION

Attributes

config[RW]

Public Class Methods

config() click to toggle source
# File lib/exception_transformer.rb, line 28
def self.config
  @config ||= Config.new
end
configure() { |config| ... } click to toggle source

To send exceptions to a crash reporter, implement a configuration block: @example

ExceptionTransformer.configure do |config|
  config.reporter = proc { |e| Raven.capture_exception(e) }
end
# File lib/exception_transformer.rb, line 24
def self.configure
  yield config if block_given?
end
included(base) click to toggle source
# File lib/exception_transformer.rb, line 14
def self.included base
  base.send :include, InstanceMethods
  base.extend ClassMethods
end