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

Module#super_method on a bound Method object: what does it return for a method whose body calls super?

class GP; def m; "gp"; end; end class PA < GP; def m; "pa->" + super; end; end meth = PA.new.method(:m) p meth.super_method.call