class RuboCop::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/rubocop/cop/mixin/hash_alignment.rb, line 95
def deltas_for_first_pair(*)
  {}
end

Private Instance Methods

hash_rocket_delta(first_pair, current_pair) click to toggle source
# File lib/rubocop/cop/mixin/hash_alignment.rb, line 105
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/rubocop/cop/mixin/hash_alignment.rb, line 101
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/rubocop/cop/mixin/hash_alignment.rb, line 109
def value_delta(first_pair, current_pair)
  first_pair.value_delta(current_pair)
end