Suppose I have a module with the methods : function1,function2,function3. I want to import function1 and function2 but not function3. Is there a way to do this in ruby?
Suppose I have a module with the methods : function1,function2,function3. I want to import
Share
Not sure if there is a clean way to just add the methods you want, but you can remove the methods that you don’t want by using
undef_method.