Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumRubyprepend vs includeSingle-choice MCQ

Two modules with the same method are included. Which wins and why?

module A; def who; "A"; end; end module B; def who; "B"; end; end class C include A include B end puts C.new.who