Module: Checkable

Defined in:
lib/checkable.rb,
lib/checkable/version.rb

Defined Under Namespace

Classes: Checker, FocusOnCheckClass, NoFocus, Report

Constant Summary collapse

VERSION =
"0.0.1"
@@checks =
Hash.new { |h,k| h[k] = [] }

Class Method Summary collapse

Class Method Details

.checks_for(type) ⇒ Object



10
11
12
# File 'lib/checkable.rb', line 10

def self.checks_for type
  @@checks[type]
end

.register(type, check) ⇒ Object



6
7
8
# File 'lib/checkable.rb', line 6

def self.register type, check
  @@checks[type] << check
end