Exception: Dhaka::EvaluatorDefinitionError
- Inherits:
-
StandardError
- Object
- StandardError
- Dhaka::EvaluatorDefinitionError
- Defined in:
- lib/evaluator/evaluator.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(non_trivial_productions_with_rules_undefined) ⇒ EvaluatorDefinitionError
constructor
A new instance of EvaluatorDefinitionError.
- #to_s ⇒ Object
Constructor Details
#initialize(non_trivial_productions_with_rules_undefined) ⇒ EvaluatorDefinitionError
Returns a new instance of EvaluatorDefinitionError.
116 117 118 |
# File 'lib/evaluator/evaluator.rb', line 116 def initialize(non_trivial_productions_with_rules_undefined) @non_trivial_productions_with_rules_undefined = non_trivial_productions_with_rules_undefined end |
Instance Method Details
#to_s ⇒ Object
120 121 122 123 |
# File 'lib/evaluator/evaluator.rb', line 120 def to_s result = "The following non-trivial productions do not have any evaluation rules defined:\n" result << (@non_trivial_productions_with_rules_undefined).join("\n") end |