Class: Checker

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

Constant Summary collapse

@@children =
[]

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(testcase, response, excludes = nil) ⇒ Checker

Returns a new instance of Checker.



6
7
8
9
10
# File 'lib/checker.rb', line 6

def initialize(testcase, response, excludes=nil)
  @testcase = testcase
  @response = response
  @excludes = excludes
end

Class Method Details

.available_pluginsObject

returns a list of symbolized plugin names



19
20
21
# File 'lib/checker.rb', line 19

def self.available_plugins
  return @@children.map{ |child| child.to_s }
end

Instance Method Details

#checkObject

executes the checking routine and returns a result object to be overwritten in child classes



14
15
16
# File 'lib/checker.rb', line 14

def check
  result = Result.new(@testcase, @response)
end