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

With a refinement active in the current scope, do reflective and dynamic calls like `send` and `obj.method(...)` see the refined method?

module R refine Array do def first_two; [self[0], self[1]]; end end end using R p [10, 20, 30].send(:first_two) p [1, 2, 3].method(:first_two).call