Exception: Ting::ParseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ting/exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(input, position, error = nil) ⇒ ParseError

Returns a new instance of ParseError.



6
7
8
9
10
# File 'lib/ting/exception.rb', line 6

def initialize(input, position, error = nil)
  super(error)
  @input=input
  @position=position
end

Instance Attribute Details

#inputObject (readonly)

Returns the value of attribute input.



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

def input
  @input
end

#positionObject (readonly)

Returns the value of attribute position.



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

def position
  @position
end