Class: Steep::Diagnostic::Signature::InheritModuleError
- Defined in:
- lib/steep/diagnostic/signature.rb
Instance Attribute Summary collapse
-
#super_class ⇒ Object
readonly
Returns the value of attribute super_class.
Attributes inherited from Base
Instance Method Summary collapse
- #header_line ⇒ Object
-
#initialize(super_class) ⇒ InheritModuleError
constructor
A new instance of InheritModuleError.
Methods inherited from Base
#detail_lines, #diagnostic_code, #path
Methods included from Helper
Constructor Details
#initialize(super_class) ⇒ InheritModuleError
343 344 345 346 |
# File 'lib/steep/diagnostic/signature.rb', line 343 def initialize(super_class) super(location: super_class.location) @super_class = super_class end |
Instance Attribute Details
#super_class ⇒ Object (readonly)
Returns the value of attribute super_class.
341 342 343 |
# File 'lib/steep/diagnostic/signature.rb', line 341 def super_class @super_class end |
Instance Method Details
#header_line ⇒ Object
348 349 350 |
# File 'lib/steep/diagnostic/signature.rb', line 348 def header_line "Cannot inherit from a module `#{super_class.name}`" end |