class RuboCop::AST::KeywordBeginNode

def body

Returns:
  • (Node, nil) - The body of the `kwbegin`.
def body
  return unless node_parts.any?
  if rescue_node
    rescue_node.body
  elsif ensure_node
    ensure_node.node_parts[0]
  elsif node_parts.one?
    node_parts[0]
  else
    self
  end
end