Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardRubymethod lookup and ancestorsSingle-choice MCQ

What does Method#super_method return for an overriding method, and how is it resolved?

class P1; def f; "P1"; end; end class C1 < P1; def f; "C1->#{super}"; end; end m = C1.new.method(:f) p m.super_method.owner p m.super_method.call