Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardRubymethod_missing dispatch internalsSingle-choice MCQ

A class defines a private method `hidden` and a public method_missing. An external call `s.hidden` (no send) does what, and why?

class Secret private def hidden; "secret"; end public def method_missing(name, *) "mm:#{name}" end end s = Secret.new puts s.hidden