Class: Steep::Errors::UnexpectedKeyword
- Defined in:
- lib/steep/errors.rb
Instance Attribute Summary collapse
-
#unexpected_keywords ⇒ Object
readonly
Returns the value of attribute unexpected_keywords.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(node:, unexpected_keywords:) ⇒ UnexpectedKeyword
constructor
A new instance of UnexpectedKeyword.
- #to_s ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(node:, unexpected_keywords:) ⇒ UnexpectedKeyword
Returns a new instance of UnexpectedKeyword.
515 516 517 518 |
# File 'lib/steep/errors.rb', line 515 def initialize(node:, unexpected_keywords:) super(node: node) @unexpected_keywords = unexpected_keywords end |
Instance Attribute Details
#unexpected_keywords ⇒ Object (readonly)
Returns the value of attribute unexpected_keywords.
513 514 515 |
# File 'lib/steep/errors.rb', line 513 def unexpected_keywords @unexpected_keywords end |
Instance Method Details
#to_s ⇒ Object
520 521 522 |
# File 'lib/steep/errors.rb', line 520 def to_s "#{location_to_str}: UnexpectedKeyword: #{unexpected_keywords.to_a.join(", ")}" end |