Class: Steep::Diagnostic::Signature::GenericParameterMismatch
- Defined in:
- lib/steep/diagnostic/signature.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Base
Instance Method Summary collapse
- #header_line ⇒ Object
-
#initialize(name:, location:) ⇒ GenericParameterMismatch
constructor
A new instance of GenericParameterMismatch.
Methods inherited from Base
#detail_lines, #diagnostic_code, #path
Methods included from Helper
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
#name ⇒ Object (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_line ⇒ Object
232 233 234 |
# File 'lib/steep/diagnostic/signature.rb', line 232 def header_line "Different generic parameters are specified across definitions of `#{name}`" end |