Exception: Braingasm::ParsingError
- Inherits:
-
BraingasmError
- Object
- RuntimeError
- BraingasmError
- Braingasm::ParsingError
- Defined in:
- lib/braingasm/errors.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
Instance Method Summary collapse
-
#initialize(line = nil, column = nil) ⇒ ParsingError
constructor
A new instance of ParsingError.
- #type ⇒ Object
Constructor Details
#initialize(line = nil, column = nil) ⇒ ParsingError
Returns a new instance of ParsingError.
10 11 12 13 |
# File 'lib/braingasm/errors.rb', line 10 def initialize(line=nil, column=nil) @line = line @column = column end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
9 10 11 |
# File 'lib/braingasm/errors.rb', line 9 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
9 10 11 |
# File 'lib/braingasm/errors.rb', line 9 def line @line end |
Instance Method Details
#type ⇒ Object
15 16 17 |
# File 'lib/braingasm/errors.rb', line 15 def type "#{super} [line #@line, col #@column]" end |