Class: Sapphire::DSL::ControlEvaluation

Inherits:
Evaluation show all
Defined in:
lib/sapphire/DSL/Evaluations/ControlEvaluation.rb

Instance Attribute Summary collapse

Attributes inherited from Evaluation

#left, #right

Instance Method Summary collapse

Methods inherited from Evaluation

#Compare, #CompareWith, #Evaluate, #Failed, #Output, #Passed, #execute

Constructor Details

#initialize(actual, expected, control) ⇒ ControlEvaluation

Returns a new instance of ControlEvaluation.



7
8
9
10
# File 'lib/sapphire/DSL/Evaluations/ControlEvaluation.rb', line 7

def initialize(actual, expected, control)
  @control = control
  super actual, expected
end

Instance Attribute Details

#controlObject (readonly)

Returns the value of attribute control.



5
6
7
# File 'lib/sapphire/DSL/Evaluations/ControlEvaluation.rb', line 5

def control
  @control
end