class RuboCop::AST::ResbodyNode

available to all ‘resbody` nodes within RuboCop.
plain node when the builder constructs the AST, making its methods
A node extension for `resbody` nodes. This will be used in place of a

def body

Returns:
  • (Node, nil) - The body of the `resbody`.
def body
  node_parts[2]
end

def exception_variable

Returns:
  • (Node, nil) - The exception variable of the `resbody`.
def exception_variable
  node_parts[1]
end