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

With `extend self`, what does redefining the method in a reopened module body show?

module N extend self def x; "x1"; end end module N def x; "x2"; end end p N.x