Exception: Dhaka::EvaluatorDefinitionError
- Inherits:
-
StandardError
- Object
- StandardError
- Dhaka::EvaluatorDefinitionError
- Defined in:
- lib/dhaka/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.
124 125 126 |
# File 'lib/dhaka/evaluator/evaluator.rb', line 124 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
128 129 130 131 |
# File 'lib/dhaka/evaluator/evaluator.rb', line 128 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 |