Class: Peck::Notifiers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/peck/notifiers/base.rb

Direct Known Subclasses

Default

Constant Summary collapse

PECK_PATH =

When a file starts with this path, it’s in the Peck library

File.expand_path('../../../../', __FILE__)
ANONYMOUS_BLOCK_RE =

Matches: ‘block (2 levels) in <top (required)>’

/`block/

Class Method Summary collapse

Class Method Details

.useObject



10
11
12
13
14
15
16
17
# File 'lib/peck/notifiers/base.rb', line 10

def self.use
  @instance ||= begin
    notifier = new
    notifier.install_at_exit
    Peck.delegates << notifier
    notifier
  end
end