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.



528
529
530
531
# File 'lib/steep/errors.rb', line 528

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.



526
527
528
# File 'lib/steep/errors.rb', line 526

def missing_keywords
  @missing_keywords
end

Instance Method Details

#to_sObject



533
534
535
# File 'lib/steep/errors.rb', line 533

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