Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardRubyinclude prepend extend on the chainSingle-choice MCQ

How does Module#extend differ from Module#include in terms of where the module is inserted?

module E2; def m; "m"; end; end obj = Object.new obj.extend(E2) p obj.singleton_class.ancestors