Class: Intrigue::Ident::CheckFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/check_factory.rb

Class Method Summary collapse

Class Method Details

.allObject

Provide the full list of checks



16
17
18
# File 'lib/check_factory.rb', line 16

def self.all
  @checks
end

.register(klass) ⇒ Object

Register a new handler



8
9
10
11
# File 'lib/check_factory.rb', line 8

def self.register(klass)
  @checks = [] unless @checks
  @checks << klass if klass
end