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

Given a transitive include where module B includes module A, then class C includes B, what is C.ancestors and the result of calling who?

module A; def who; "A"; end; end module B; include A; def who; "B->" + super; end; end class C; include B; end p C.new.who