module Dogcatcher

Constants

VERSION

Public Class Methods

build_notice(exception) click to toggle source

@param [Exception] exception @return [Dogcatcher::Notice]

# File lib/dogcatcher.rb, line 31
def build_notice(exception)
  Notice.new(config, exception)
end
config() click to toggle source

Returns a config instance

@return [Dogcatcher::Config]

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

Used to configure Dogcatcher

@yieldparam [Dogcatcher::Config]

# File lib/dogcatcher.rb, line 25
def configure
  yield config
end
notify(notice) click to toggle source

@param [Dogcatcher::Notice] notice

# File lib/dogcatcher.rb, line 36
def notify(notice)
  @notifier ||= Notifier.new(config)
  @notifier.notify(notice)
end