class RuboCop::AST::RescueNode

def branches

Returns:
  • (Array) - an array of the bodies of the rescue branches
def branches
  bodies = resbody_branches.map(&:body)
  bodies.push(else_branch) if else?
  bodies
end