Class: MessageNotFoundError
- Inherits:
-
CompilerError
- Object
- CompilerError
- MessageNotFoundError
- Defined in:
- lib/compiler_error.rb
Instance Method Summary collapse
- #info ⇒ Object
-
#initialize(ast, direction) ⇒ MessageNotFoundError
constructor
A new instance of MessageNotFoundError.
Methods inherited from CompilerError
Constructor Details
#initialize(ast, direction) ⇒ MessageNotFoundError
Returns a new instance of MessageNotFoundError.
158 159 160 161 162 |
# File 'lib/compiler_error.rb', line 158 def initialize ast, direction super ast.position @name = ast. @direction = direction end |
Instance Method Details
#info ⇒ Object
164 165 166 |
# File 'lib/compiler_error.rb', line 164 def info "'#{@name}' undefined message in direction '#{@direction.name}'\n #{@direction.ast.position} : see previous direction definition of '#{@direction.name}'" end |