Exception: CommentRipper::UnmatchedTokenException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- CommentRipper::UnmatchedTokenException
- Defined in:
- lib/exceptions.rb
Instance Method Summary collapse
-
#initialize(token) ⇒ UnmatchedTokenException
constructor
A new instance of UnmatchedTokenException.
- #to_s ⇒ Object
Constructor Details
#initialize(token) ⇒ UnmatchedTokenException
Returns a new instance of UnmatchedTokenException.
3 4 5 |
# File 'lib/exceptions.rb', line 3 def initialize(token) @token = token end |
Instance Method Details
#to_s ⇒ Object
7 8 9 |
# File 'lib/exceptions.rb', line 7 def to_s "Unmatched token: #{@token.symbol} at L#{@token.position.line} C#{@token.position.character}" end |