class RuboCop::AST::DefNode

def receiver

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