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

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -