Exception: XRay::ParseError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/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.



6
7
8
9
# File 'lib/parse_error.rb', line 6

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

Instance Attribute Details

#positionObject (readonly)

Returns the value of attribute position.



4
5
6
# File 'lib/parse_error.rb', line 4

def position
  @position
end