← Graph

Use Refinements for Coordinated Modernization

takeaway 1 connections

Takeaway from 'To Refine or Not to Refine': use a refinement to polyfill a new Ruby feature (e.g. Ruby 2.5's Hash#fetch) so a gem can use it without bumping its minimum Ruby version. Later, when the minimum rises, just delete the refinement — the code keeps working.

type
recommendation
takeaway Use Refinements for Coordinated Modernization
from_talk
Second recommended use case in the talk.

Provenance

Created in
Wroclove.rb 2018 — Lightning Talks 2026-04-17 16:18
Read by
18 extractions