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

How does Module#prepend interact with super so a wrapper can reach the class's own definition of the same method?

module Wrap; def go; "wrap+" + super; end; end class Runner prepend Wrap def go; "run"; end end puts Runner.new.go