Class: MessageNotFoundError

Inherits:
CompilerError show all
Defined in:
lib/compiler_error.rb

Instance Method Summary collapse

Methods inherited from CompilerError

#to_s

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.message
  @direction = direction
end

Instance Method Details

#infoObject



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