This document discusses refinements, a new Ruby feature that allows extending and modifying classes in a lexically scoped way. It begins with an introduction and then covers topics like classboxes, refinements syntax using Module#refine and Kernel#using, precedence rules, and applications like extending built-in classes. Examples are provided throughout to illustrate refinements. The document conc
![Classboxes, nested methods, and real private methods](https://cdn-ak-scissors.b.st-hatena.com/image/square/58cfd0721cfae7f7b568489becb50036c7aa1f47/height=288;version=1;width=512/https%3A%2F%2Fcdn.slidesharecdn.com%2Fss_thumbnails%2Frc2010-refinements-101112163230-phpapp02-thumbnail.jpg%3Fwidth%3D640%26height%3D640%26fit%3Dbounds)