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

When the same module is included twice in one class, how does the ancestor list reflect it, and why?

module M; end class X include M include M end puts X.ancestors.count(M)