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.
103 104 105 106 |
# File 'lib/rubocop/cop/style/parallel_assignment.rb', line 103 def initialize(node, indentation_width) @node = node @indentation_width = indentation_width end |
Instance Attribute Details
#correction ⇒ Object (readonly)
Returns the value of attribute correction.
101 102 103 |
# File 'lib/rubocop/cop/style/parallel_assignment.rb', line 101 def correction @correction end |
#correction_range ⇒ Object (readonly)
Returns the value of attribute correction_range.
101 102 103 |
# File 'lib/rubocop/cop/style/parallel_assignment.rb', line 101 def correction_range @correction_range end |