Class: Sapphire::DSL::FieldNotDefinedEvaluation
- Defined in:
- lib/sapphire/DSL/Evaluations/FieldNotDefinedEvaluation.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
Instance Method Summary collapse
-
#initialize(field, page) ⇒ FieldNotDefinedEvaluation
constructor
A new instance of FieldNotDefinedEvaluation.
- #Output ⇒ Object
Constructor Details
#initialize(field, page) ⇒ FieldNotDefinedEvaluation
Returns a new instance of FieldNotDefinedEvaluation.
7 8 9 10 |
# File 'lib/sapphire/DSL/Evaluations/FieldNotDefinedEvaluation.rb', line 7 def initialize(field, page) @field = field @page = page end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
5 6 7 |
# File 'lib/sapphire/DSL/Evaluations/FieldNotDefinedEvaluation.rb', line 5 def field @field end |
Instance Method Details
#Output ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/sapphire/DSL/Evaluations/FieldNotDefinedEvaluation.rb', line 12 def Output() = [] << "Cannot find control " + @field.to_s + " defined for page " + @page.to_s raise ExpectationException.new() end |