Class: Steep::Diagnostic::Signature::VariableDuplicationError

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, #header_line, #path

Methods included from Helper

#error_name, #full_message

Constructor Details

#initialize(type_name:, variable_name:, location:) ⇒ VariableDuplicationError

Returns a new instance of VariableDuplicationError.



280
281
282
283
284
# File 'lib/steep/diagnostic/signature.rb', line 280

def initialize(type_name:, variable_name:, location:)
  @type_name = type_name
  @variable_name = variable_name
  @location = location
end

Instance Attribute Details

#type_nameObject (readonly)

Returns the value of attribute type_name.



277
278
279
# File 'lib/steep/diagnostic/signature.rb', line 277

def type_name
  @type_name
end

#variable_nameObject (readonly)

Returns the value of attribute variable_name.



278
279
280
# File 'lib/steep/diagnostic/signature.rb', line 278

def variable_name
  @variable_name
end