Class: Rubocop::Cop::Style::AlignHash::SeparatorAlignment

Inherits:
AlignmentOfValues show all
Defined in:
lib/rubocop/cop/style/align_hash.rb

Overview

Handles calculation of deltas when the enforced style is 'separator'.

Instance Method Summary collapse

Methods inherited from AlignmentOfValues

#checkable_layout, #deltas

Instance Method Details

#deltas_for_first_pair(first_pair, node) ⇒ Object



120
121
122
# File 'lib/rubocop/cop/style/align_hash.rb', line 120

def deltas_for_first_pair(first_pair, node)
  {} # The first pair is always considered correct.
end