Module: Dogcatcher

Defined in:
lib/dogcatcher.rb,
lib/dogcatcher/config.rb,
lib/dogcatcher/notice.rb,
lib/dogcatcher/tag_set.rb,
lib/dogcatcher/version.rb,
lib/dogcatcher/markdown.rb,
lib/dogcatcher/notifier.rb

Defined Under Namespace

Classes: Config, Markdown, Notice, Notifier, TagSet

Constant Summary collapse

VERSION =
'0.3.3'.freeze

Class Method Summary collapse

Class Method Details

.build_notice(exception) ⇒ Dogcatcher::Notice

Parameters:

  • exception (Exception)

Returns:



31
32
33
# File 'lib/dogcatcher.rb', line 31

def build_notice(exception)
  Notice.new(config, exception)
end

.configDogcatcher::Config

Returns a config instance

Returns:



18
19
20
# File 'lib/dogcatcher.rb', line 18

def config
  @config ||= Config.new
end

.configure {|| ... } ⇒ Object

Used to configure Dogcatcher

Yield Parameters:



25
26
27
# File 'lib/dogcatcher.rb', line 25

def configure
  yield config
end

.notify(notice) ⇒ Object

Parameters:



36
37
38
39
# File 'lib/dogcatcher.rb', line 36

def notify(notice)
  @notifier ||= Notifier.new(config)
  @notifier.notify(notice)
end