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

python 3 IndexError: list index out of range -

android - How to save instance state of selected radiobutton on menu -

IF statement in MySQL trigger -