Exception: ShuntingYard::UnknownParenthesisError

Inherits:
Error
  • Object
show all
Defined in:
lib/shunting_yard/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(token) ⇒ UnknownParenthesisError

Returns a new instance of UnknownParenthesisError.



35
36
37
# File 'lib/shunting_yard/errors.rb', line 35

def initialize(token)
  super "Token '#{token}' is not a parenthesis"
end