I want to have a ruby class where all methods I require, that are class methods, and hence I defined them as def self.method_name, and now all methods are defined as self. Is there any way to avoid writing self., and in one go declare all methods as class level.
One is to put them in a module and let the class extend it.
What else?
1 Answer