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

With `extend self`, how do a module's methods behave compared to `module_function`?

module Calc extend self def add(a, b) = a + b end class Foo include Calc end