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
Returns a new instance of InheritModuleError.
374 375 376 377 |
# File 'lib/steep/diagnostic/signature.rb', line 374 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.
372 373 374 |
# File 'lib/steep/diagnostic/signature.rb', line 372 def super_class @super_class end |
Instance Method Details
#header_line ⇒ Object
379 380 381 |
# File 'lib/steep/diagnostic/signature.rb', line 379 def header_line "Cannot inherit from a module `#{super_class.name}`" end |