Class: RuboCop::Cop::Style::ParallelAssignment::GenericCorrector
- Inherits:
-
Object
- Object
- RuboCop::Cop::Style::ParallelAssignment::GenericCorrector
- Defined in:
- lib/rubocop/cop/style/parallel_assignment.rb
Overview
An internal class for correcting parallel assignment
Direct Known Subclasses
Instance Attribute Summary collapse
-
#correction ⇒ Object
readonly
Returns the value of attribute correction.
-
#correction_range ⇒ Object
readonly
Returns the value of attribute correction_range.
Instance Method Summary collapse
-
#initialize(node, indentation_width) ⇒ GenericCorrector
constructor
A new instance of GenericCorrector.
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
#correction ⇒ Object (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_range ⇒ Object (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 |