Class: RuboCop::Cop::Style::ParallelAssignment::GenericCorrector

Inherits:
Object
  • Object
show all
Defined in:
lib/rubocop/cop/style/parallel_assignment.rb

Overview

An internal class for correcting parallel assignment

Direct Known Subclasses

ModifierCorrector, RescueCorrector

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node, indentation_width) ⇒ GenericCorrector

Returns a new instance of GenericCorrector.



100
101
102
103
# File 'lib/rubocop/cop/style/parallel_assignment.rb', line 100

def initialize(node, indentation_width)
  @node = node
  @indentation_width = indentation_width
end

Instance Attribute Details

#correctionObject (readonly)

Returns the value of attribute correction.



98
99
100
# File 'lib/rubocop/cop/style/parallel_assignment.rb', line 98

def correction
  @correction
end

#correction_rangeObject (readonly)

Returns the value of attribute correction_range.



98
99
100
# File 'lib/rubocop/cop/style/parallel_assignment.rb', line 98

def correction_range
  @correction_range
end