class RuboCop::Cop::HashAlignment::SeparatorAlignment

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

Public Instance Methods

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

Private Instance Methods

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