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

Given the chain below, what does `C.ancestors` return and why?

module A; def hi; "A"; end; end module B; def hi; "B"; end; end class C include A prepend B end p C.ancestors