Exception: EleetScript::LexicalError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- EleetScript::LexicalError
- Defined in:
- lib/eleetscript.rb
Instance Method Summary collapse
-
#initialize(char, line) ⇒ LexicalError
constructor
A new instance of LexicalError.
- #message ⇒ Object
Constructor Details
#initialize(char, line) ⇒ LexicalError
Returns a new instance of LexicalError.
5 6 7 8 |
# File 'lib/eleetscript.rb', line 5 def initialize(char, line) @char = char @line = line end |
Instance Method Details
#message ⇒ Object
10 11 12 |
# File 'lib/eleetscript.rb', line 10 def "Unknown character encountered '#{@char}' on line ##{@line}" end |