Exception: ShuntingYard::UnknownOperatorError
- Defined in:
- lib/shunting_yard/errors.rb
Instance Method Summary collapse
-
#initialize(token) ⇒ UnknownOperatorError
constructor
A new instance of UnknownOperatorError.
Constructor Details
#initialize(token) ⇒ UnknownOperatorError
Returns a new instance of UnknownOperatorError.
23 24 25 |
# File 'lib/shunting_yard/errors.rb', line 23 def initialize(token) super "Unknown operator '#{token.lexeme}'" end |