Module: CampfireChat::Checks

Included in:
PairMessage
Defined in:
lib/campfire_chat/checks.rb,
lib/campfire_chat/checks/pair_message.rb

Defined Under Namespace

Modules: PairMessage

Class Method Summary collapse

Class Method Details

.checksObject



7
8
9
# File 'lib/campfire_chat/checks.rb', line 7

def self.checks
  @checks ||= []
end

.extended(base) ⇒ Object



3
4
5
# File 'lib/campfire_chat/checks.rb', line 3

def self.extended(base)
  checks << base
end

.process(notification) ⇒ Object



11
12
13
14
15
# File 'lib/campfire_chat/checks.rb', line 11

def self.process(notification)
  checks.each do |check|
    check.process_notification(notification)
  end
end