Class: Steep::Diagnostic::Signature::DuplicatedMethodDefinition
- Defined in:
- lib/steep/diagnostic/signature.rb
Instance Attribute Summary collapse
-
#class_name ⇒ Object
readonly
Returns the value of attribute class_name.
-
#method_name ⇒ Object
readonly
Returns the value of attribute method_name.
Attributes inherited from Base
Instance Method Summary collapse
- #header_line ⇒ Object
-
#initialize(class_name:, method_name:, location:) ⇒ DuplicatedMethodDefinition
constructor
A new instance of DuplicatedMethodDefinition.
Methods inherited from Base
#detail_lines, #diagnostic_code, #path
Methods included from Helper
Constructor Details
#initialize(class_name:, method_name:, location:) ⇒ DuplicatedMethodDefinition
Returns a new instance of DuplicatedMethodDefinition.
159 160 161 162 163 |
# File 'lib/steep/diagnostic/signature.rb', line 159 def initialize(class_name:, method_name:, location:) super(location: location) @class_name = class_name @method_name = method_name end |
Instance Attribute Details
#class_name ⇒ Object (readonly)
Returns the value of attribute class_name.
156 157 158 |
# File 'lib/steep/diagnostic/signature.rb', line 156 def class_name @class_name end |
#method_name ⇒ Object (readonly)
Returns the value of attribute method_name.
157 158 159 |
# File 'lib/steep/diagnostic/signature.rb', line 157 def method_name @method_name end |
Instance Method Details
#header_line ⇒ Object
165 166 167 |
# File 'lib/steep/diagnostic/signature.rb', line 165 def header_line "Non-overloading method definition of `#{method_name}` in `#{class_name}` cannot be duplicated" end |