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

Internally, what node does Ruby insert into the ancestor chain to make `super` work correctly when the *same* module is included by two different classes in an inheritance hierarchy, and what is that node called?

module M; def go; "M"; end; end class A; include M; end class B < A; include M; end p B.ancestors