Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardRubythe object model classes are objectsSingle-choice MCQ

For a plain module, what does `Module#ancestors` return, and what is the singleton class of an ordinary object an instance of?

module M; def a; end; end M.ancestors # (a) o = Object.new o.singleton_class.class # (b)