Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardRubyinclude prepend extend on the chainSingle-choice MCQ

When `prepend` is used to wrap a method and the wrapped method calls `super`, what internal mechanism lets `super` reach the original definition without the method name being repeated, and what happens if the prepended module is included *after* the method is already defined and called once?

module Timing def work; "[#{super}]"; end end class Job def work; "core"; end prepend Timing end p Job.new.work