Class: Steep::Diagnostic::Signature::NonregularTypeAlias
- Defined in:
- lib/steep/diagnostic/signature.rb
Instance Attribute Summary collapse
-
#nonregular_type ⇒ Object
readonly
Returns the value of attribute nonregular_type.
-
#type_name ⇒ Object
readonly
Returns the value of attribute type_name.
Attributes inherited from Base
Instance Method Summary collapse
- #header_line ⇒ Object
-
#initialize(type_name:, nonregular_type:, location:) ⇒ NonregularTypeAlias
constructor
A new instance of NonregularTypeAlias.
Methods inherited from Base
#detail_lines, #diagnostic_code, #path
Methods included from Helper
Constructor Details
#initialize(type_name:, nonregular_type:, location:) ⇒ NonregularTypeAlias
Returns a new instance of NonregularTypeAlias.
383 384 385 386 387 |
# File 'lib/steep/diagnostic/signature.rb', line 383 def initialize(type_name:, nonregular_type:, location:) @type_name = type_name @nonregular_type = nonregular_type @location = location end |
Instance Attribute Details
#nonregular_type ⇒ Object (readonly)
Returns the value of attribute nonregular_type.
381 382 383 |
# File 'lib/steep/diagnostic/signature.rb', line 381 def nonregular_type @nonregular_type end |
#type_name ⇒ Object (readonly)
Returns the value of attribute type_name.
380 381 382 |
# File 'lib/steep/diagnostic/signature.rb', line 380 def type_name @type_name end |
Instance Method Details
#header_line ⇒ Object
389 390 391 |
# File 'lib/steep/diagnostic/signature.rb', line 389 def header_line "Type alias #{type_name} is defined *non-regular*: #{nonregular_type}" end |