Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumRubyrefinements usingSingle-choice MCQ

A refinement is activated with `using` inside a class body. Where is the refined method `shout` available?

module StringExt refine(String) { def shout = upcase + "!" } end class Loud using StringExt def yell(s) = s.shout end # elsewhere, top level: "hi".shout