Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumRubymodule_function and extend selfSingle-choice MCQ

Using `extend self` instead of `module_function`, what does this print?

module U extend self def util; "u"; end end class C include U end puts C.new.respond_to?(:util)