Exception: Dhaka::EvaluatorDefinitionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/evaluator/evaluator.rb

Overview

:nodoc:

Instance Method Summary collapse

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_sObject



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