class RuboCop::Cop::Style::AlignHash::TableAlignment
def deltas_for_first_pair(first_pair, node)
The table style is the only one where the first key-value pair can
def deltas_for_first_pair(first_pair, node) key_widths = node.children.map do |pair| key, _value = *pair key.source.length end @max_key_width = key_widths.max separator_delta = separator_delta(first_pair, first_pair.loc.operator, 0) { separator: separator_delta, value: value_delta(first_pair, first_pair) - separator_delta } end