Class: Steep::Diagnostic::Signature::UnknownMethodAlias

Inherits:
Base
  • Object
show all
Defined in:
lib/steep/diagnostic/signature.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#location

Instance Method Summary collapse

Methods inherited from Base

#detail_lines, #diagnostic_code, #path

Methods included from Helper

#error_name, #full_message

Constructor Details

#initialize(class_name:, method_name:, location:) ⇒ UnknownMethodAlias

Returns a new instance of UnknownMethodAlias.



144
145
146
147
148
# File 'lib/steep/diagnostic/signature.rb', line 144

def initialize(class_name:, method_name:, location:)
  super(location: location)
  @class_name = class_name
  @method_name = method_name
end

Instance Attribute Details

#class_nameObject (readonly)

Returns the value of attribute class_name.



141
142
143
# File 'lib/steep/diagnostic/signature.rb', line 141

def class_name
  @class_name
end

#method_nameObject (readonly)

Returns the value of attribute method_name.



142
143
144
# File 'lib/steep/diagnostic/signature.rb', line 142

def method_name
  @method_name
end

Instance Method Details

#header_lineObject



150
151
152
# File 'lib/steep/diagnostic/signature.rb', line 150

def header_line
  "Cannot find the original method `#{method_name}` in `#{class_name}`"
end