Class: Steep::Diagnostic::Signature::MixinClassError
- Defined in:
- lib/steep/diagnostic/signature.rb
Instance Attribute Summary collapse
-
#member ⇒ Object
readonly
Returns the value of attribute member.
-
#type_name ⇒ Object
readonly
Returns the value of attribute type_name.
Attributes inherited from Base
Instance Method Summary collapse
- #header_line ⇒ Object
-
#initialize(location:, member:, type_name:) ⇒ MixinClassError
constructor
A new instance of MixinClassError.
Methods inherited from Base
#detail_lines, #diagnostic_code, #path
Methods included from Helper
Constructor Details
#initialize(location:, member:, type_name:) ⇒ MixinClassError
Returns a new instance of MixinClassError.
316 317 318 319 320 |
# File 'lib/steep/diagnostic/signature.rb', line 316 def initialize(location:, member:, type_name:) super(location: location) @member = member @type_name = type_name end |
Instance Attribute Details
#member ⇒ Object (readonly)
Returns the value of attribute member.
313 314 315 |
# File 'lib/steep/diagnostic/signature.rb', line 313 def member @member end |
#type_name ⇒ Object (readonly)
Returns the value of attribute type_name.
314 315 316 |
# File 'lib/steep/diagnostic/signature.rb', line 314 def type_name @type_name end |
Instance Method Details
#header_line ⇒ Object
322 323 324 |
# File 'lib/steep/diagnostic/signature.rb', line 322 def header_line "Cannot #{mixin_name} a class `#{member.name}` in the definition of `#{type_name}`" end |