Class: Steep::Diagnostic::Signature::SuperclassMismatch
- 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:) ⇒ SuperclassMismatch
constructor
A new instance of SuperclassMismatch.
Methods inherited from Base
#detail_lines, #diagnostic_code, #path
Methods included from Helper
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
#name ⇒ Object (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_line ⇒ Object
219 220 221 |
# File 'lib/steep/diagnostic/signature.rb', line 219 def header_line "Different superclasses are specified for `#{name}`" end |