Refinement in Ruby -
is there way limit effect of refinement in single ruby program apart using within module?
for example, let's name of refinement stringrefinement , type using stringrefinement comes effect , in effect till end of program file.
is there way limit boundary later part of program doesn't have effects of refinement?
just wrap application in module uses refinement:
module myapp using stringrefinement def self.run! # job end end
Comments
Post a Comment