Class: Steep::Diagnostic::Signature::SuperclassMismatch

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

Instance Attribute Summary collapse

Attributes inherited from Base

#location

Instance Method Summary collapse

Methods inherited from Base

#detail_lines, #diagnostic_code, #path

Methods included from Helper

#error_name, #full_message

Constructor Details

#initialize(name:, location:) ⇒ SuperclassMismatch

Returns a new instance of SuperclassMismatch.



214
215
216
217
# File 'lib/steep/diagnostic/signature.rb', line 214

def initialize(name:, location:)
  super(location: location)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



212
213
214
# File 'lib/steep/diagnostic/signature.rb', line 212

def name
  @name
end

Instance Method Details

#header_lineObject



219
220
221
# File 'lib/steep/diagnostic/signature.rb', line 219

def header_line
  "Different superclasses are specified for `#{name}`"
end