class RuboCop::AST::DefNode

def receiver

Returns:
  • (Node, nil) - the receiver of the method definition, or `nil`.
def receiver
  children[-4]
end