Exception: Fdlint::Parser::ParseError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/fdlint/parser/parse_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil, position = nil) ⇒ ParseError

Returns a new instance of ParseError.



5
6
7
8
# File 'lib/fdlint/parser/parse_error.rb', line 5

def initialize(msg = nil, position = nil)
  super msg
  @position = position
end

Instance Attribute Details

#positionObject (readonly)

Returns the value of attribute position.



3
4
5
# File 'lib/fdlint/parser/parse_error.rb', line 3

def position
  @position
end