Class: Steep::Errors::MissingKeyword

Inherits:
Base
  • Object
show all
Defined in:
lib/steep/errors.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#node

Instance Method Summary collapse

Methods inherited from Base

#location_to_str, #print_to

Constructor Details

#initialize(node:, missing_keywords:) ⇒ MissingKeyword

Returns a new instance of MissingKeyword.



537
538
539
540
# File 'lib/steep/errors.rb', line 537

def initialize(node:, missing_keywords:)
  super(node: node)
  @missing_keywords = missing_keywords
end

Instance Attribute Details

#missing_keywordsObject (readonly)

Returns the value of attribute missing_keywords.



535
536
537
# File 'lib/steep/errors.rb', line 535

def missing_keywords
  @missing_keywords
end

Instance Method Details

#to_sObject



542
543
544
# File 'lib/steep/errors.rb', line 542

def to_s
  "#{location_to_str}: MissingKeyword: #{missing_keywords.to_a.join(", ")}"
end