class RuboCop::AST::ResbodyNode

def branch_index

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