Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumRubysend and public_sendSingle-choice MCQ

A class defines a method named `send` that shadows `Kernel#send`. You still need to dynamically invoke an arbitrary method by name on instances of this class. Which approach reliably performs metaprogramming dispatch?

class Mailer def send(to) "mailed #{to}" end def deliver "delivered" end end m = Mailer.new