Exception: Gemite::SyntaxError
- Inherits:
-
StandardError
- Object
- StandardError
- Gemite::SyntaxError
- Defined in:
- lib/gemite/errors.rb
Overview
字句解析・構文解析エラー
Instance Attribute Summary collapse
-
#line ⇒ Object
readonly
Returns the value of attribute line.
Instance Method Summary collapse
-
#initialize(message, line: nil) ⇒ SyntaxError
constructor
A new instance of SyntaxError.
Constructor Details
#initialize(message, line: nil) ⇒ SyntaxError
Returns a new instance of SyntaxError.
8 9 10 11 |
# File 'lib/gemite/errors.rb', line 8 def initialize(, line: nil) @line = line super(line ? "#{} (#{line}行目)" : ) end |
Instance Attribute Details
#line ⇒ Object (readonly)
Returns the value of attribute line.
6 7 8 |
# File 'lib/gemite/errors.rb', line 6 def line @line end |