Class: Pinyin::ParseError

Inherits:
Error
  • Object
show all
Defined in:
lib/pinyin/exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(input, position) ⇒ ParseError

Returns a new instance of ParseError.



8
9
10
11
# File 'lib/pinyin/exception.rb', line 8

def initialize(input, position)
  @input=input
  @position=position
end

Instance Attribute Details

#inputObject (readonly)

Returns the value of attribute input.



6
7
8
# File 'lib/pinyin/exception.rb', line 6

def input
  @input
end

#positionObject (readonly)

Returns the value of attribute position.



6
7
8
# File 'lib/pinyin/exception.rb', line 6

def position
  @position
end