Class: NodeNotFoundError
- Inherits:
-
CompilerError
- Object
- CompilerError
- NodeNotFoundError
- Defined in:
- lib/compiler_error.rb
Instance Method Summary collapse
- #info ⇒ Object
-
#initialize(ast, name) ⇒ NodeNotFoundError
constructor
A new instance of NodeNotFoundError.
Methods inherited from CompilerError
Constructor Details
#initialize(ast, name) ⇒ NodeNotFoundError
Returns a new instance of NodeNotFoundError.
96 97 98 99 |
# File 'lib/compiler_error.rb', line 96 def initialize ast, name super ast.position @name = name end |
Instance Method Details
#info ⇒ Object
101 102 103 |
# File 'lib/compiler_error.rb', line 101 def info "'#{@name}' : undefined node" end |