Is there any way to limit the effect of a refinement in a single ruby program apart from using it within a module?
For example, let's say the name of the refinement is StringRefinement and as we type using StringRefinement it comes into effect and is in effect till the end of the program file.
Is there any way to limit its boundary so that some later part of the program doesn't have effects of that refinement?