Exception: Dhaka::EvaluatorDefinitionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/dhaka/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.



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_sObject



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