I cant imagine this is a good design.. but you can try to both include
and extend
the module into the class. include
adds the methods as instance methods and `ehttp://www.railstips.org/blog/archives/2009/05/15/include-vs-extend-in-ruby/
↧
Answer by Karthik T for how to call same module method as instance method and class method in ruby class
↧