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

When you call `obj.singleton_class.ancestors` on a plain object whose class includes a module, where does the singleton class sit relative to the object's class in the returned ancestor chain, and why?

class C include Comparable end obj = C.new p obj.singleton_class.ancestors