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

A class defines `method_missing` for one specific name and calls `super` for everything else. When `super` (bare, no arguments) is reached, what concretely happens at the VM level?

class Proxy def method_missing(name, *args) return 42 if name == :foo super end end Proxy.new.foo # => ? Proxy.new.bar # => ?