Class: Habaki::Error
Overview
syntax error
Instance Attribute Summary collapse
Instance Method Summary collapse
- #column ⇒ Integer
-
#initialize ⇒ Error
constructor
A new instance of Error.
- #line ⇒ Integer
- #read_from_katana(err) ⇒ void private
Methods inherited from Node
Constructor Details
#initialize ⇒ Error
Returns a new instance of Error.
21 22 23 |
# File 'lib/habaki/error.rb', line 21 def initialize @position = SourcePosition.new end |
Instance Attribute Details
#position ⇒ SourcePosition
17 18 19 |
# File 'lib/habaki/error.rb', line 17 def position @position end |
Instance Method Details
#column ⇒ Integer
31 32 33 |
# File 'lib/habaki/error.rb', line 31 def column @position.column end |
#line ⇒ Integer
26 27 28 |
# File 'lib/habaki/error.rb', line 26 def line @position.line end |
#read_from_katana(err) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
38 39 40 41 |
# File 'lib/habaki/error.rb', line 38 def read_from_katana(err) @position = SourcePosition.new(err.first_line, err.first_column) @message = err. end |