Exception: XRay::ParseError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- XRay::ParseError
- Defined in:
- lib/parse_error.rb
Instance Attribute Summary collapse
-
#position ⇒ Object
readonly
Returns the value of attribute position.
Instance Method Summary collapse
-
#initialize(msg = nil, position = nil) ⇒ ParseError
constructor
A new instance of ParseError.
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
#position ⇒ Object (readonly)
Returns the value of attribute position.
4 5 6 |
# File 'lib/parse_error.rb', line 4 def position @position end |