class RuboCop::AST::InPatternNode

def branch_index

Returns:
  • (Integer) - the index of the `in` branch
def branch_index
  parent.in_pattern_branches.index(self)
end