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

Given prepend and a normal method, what does `Calc.new.compute` return and which class owns the method first found?

module Logging def compute; "log(" + super + ")"; end end class Calc prepend Logging def compute; "base"; end end p Calc.new.compute p Calc.instance_method(:compute).owner