module RuboCop::AST::HashElementNode
def key_delta(other, alignment = :left)
-
(Integer)
- the delta between the two keys
Parameters:
-
alignment
(Symbol
) -- whether to check the left or right side
Other tags:
- Note: - Keyword splats always return a delta of 0 for right alignment
Note: - Keys on the same line always return a delta of 0
def key_delta(other, alignment = :left) HashElementDelta.new(self, other).key_delta(alignment) end