Class: Pinyin::ParseError
Instance Attribute Summary collapse
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
Instance Method Summary collapse
-
#initialize(input, position) ⇒ ParseError
constructor
A new instance of ParseError.
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
#input ⇒ Object (readonly)
Returns the value of attribute input.
6 7 8 |
# File 'lib/pinyin/exception.rb', line 6 def input @input end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
6 7 8 |
# File 'lib/pinyin/exception.rb', line 6 def position @position end |