Class: Steep::Diagnostic::Signature::GenericParameterMismatch

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:) ⇒ GenericParameterMismatch

Returns a new instance of GenericParameterMismatch.



227
228
229
230
# File 'lib/steep/diagnostic/signature.rb', line 227

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



225
226
227
# File 'lib/steep/diagnostic/signature.rb', line 225

def name
  @name
end

Instance Method Details

#header_lineObject



232
233
234
# File 'lib/steep/diagnostic/signature.rb', line 232

def header_line
  "Different generic parameters are specified across definitions of `#{name}`"
end