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