Exception: CommentRipper::UnmatchedTokenException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/exceptions.rb

Instance Method Summary collapse

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