class RubbyCop::Cop::HashAlignment::SeparatorAlignment

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

Public Instance Methods

deltas_for_first_pair(*) click to toggle source
# File lib/rubbycop/cop/mixin/hash_alignment.rb, line 96
def deltas_for_first_pair(*)
  {}
end

Private Instance Methods

hash_rocket_delta(first_pair, current_pair) click to toggle source
# File lib/rubbycop/cop/mixin/hash_alignment.rb, line 106
def hash_rocket_delta(first_pair, current_pair)
  first_pair.delimiter_delta(current_pair)
end
key_delta(first_pair, current_pair) click to toggle source
# File lib/rubbycop/cop/mixin/hash_alignment.rb, line 102
def key_delta(first_pair, current_pair)
  first_pair.key_delta(current_pair, :right)
end
value_delta(first_pair, current_pair) click to toggle source
# File lib/rubbycop/cop/mixin/hash_alignment.rb, line 110
def value_delta(first_pair, current_pair)
  first_pair.value_delta(current_pair)
end