Class: Steep::Diagnostic::Signature::RecursiveAlias
- Defined in:
- lib/steep/diagnostic/signature.rb
Instance Attribute Summary collapse
-
#class_name ⇒ Object
readonly
Returns the value of attribute class_name.
-
#names ⇒ Object
readonly
Returns the value of attribute names.
Attributes inherited from Base
Instance Method Summary collapse
- #header_line ⇒ Object
-
#initialize(class_name:, names:, location:) ⇒ RecursiveAlias
constructor
A new instance of RecursiveAlias.
Methods inherited from Base
#detail_lines, #diagnostic_code, #path
Methods included from Helper
Constructor Details
#initialize(class_name:, names:, location:) ⇒ RecursiveAlias
Returns a new instance of RecursiveAlias.
174 175 176 177 178 |
# File 'lib/steep/diagnostic/signature.rb', line 174 def initialize(class_name:, names:, location:) super(location: location) @class_name = class_name @names = names end |
Instance Attribute Details
#class_name ⇒ Object (readonly)
Returns the value of attribute class_name.
171 172 173 |
# File 'lib/steep/diagnostic/signature.rb', line 171 def class_name @class_name end |
#names ⇒ Object (readonly)
Returns the value of attribute names.
172 173 174 |
# File 'lib/steep/diagnostic/signature.rb', line 172 def names @names end |
Instance Method Details
#header_line ⇒ Object
180 181 182 |
# File 'lib/steep/diagnostic/signature.rb', line 180 def header_line "Circular method alias is detected in `#{class_name}`: #{names.join(" -> ")}" end |