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

A class includes module A then module B, both defining the same method, and B's method calls `super`. Which definition runs first and where does `super` go?

module A33; def name; "A"; end; end module B33; def name; "B->#{super}"; end; end class C33 include A33 include B33 end p C33.new.name