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

A refinement overrides an existing core method that already exists. While the refinement is active, which definition wins?

module Ext refine Array do def sum; "refined"; end end end using Ext p [1, 2, 3].sum