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

A refinement defines Integer#double. Does `5.send(:double)` work when the refinement is active?

module Ext refine Integer do def double; self * 2; end end end using Ext p 5.double p 5.send(:double)