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

Given `module M1; end; module M2; end; class A; prepend M1; include M2; end`, what is the order of the first four entries of `A.ancestors`?

module M1; end module M2; end class A prepend M1 include M2 end A.ancestors