class RuboCop::AST::DefNode

def body

Returns:
  • (Node) - the body of the method definition

Other tags:
    Note: - this can be either a `begin` node, if the method body contains
def body
  children[-1]
end