Class: TypeNotFoundError
- Inherits:
-
CompilerError
- Object
- CompilerError
- TypeNotFoundError
- Defined in:
- lib/compiler_error.rb
Instance Method Summary collapse
- #info ⇒ Object
-
#initialize(ast, name) ⇒ TypeNotFoundError
constructor
A new instance of TypeNotFoundError.
Methods inherited from CompilerError
Constructor Details
#initialize(ast, name) ⇒ TypeNotFoundError
Returns a new instance of TypeNotFoundError.
84 85 86 87 |
# File 'lib/compiler_error.rb', line 84 def initialize ast, name super ast.position @name = name end |
Instance Method Details
#info ⇒ Object
89 90 91 |
# File 'lib/compiler_error.rb', line 89 def info "'#{@name}' : undefined type" end |