I mean, I want to create a class method in my module that will be used by the class who includes the module. They are in separated files.
By far I have something like th
Following Ricardo's answer, consider an idiom common among Ruby programmers - enclose your module's class methods into inner module, called ClassMethods(that's a mouthful, I know), and use and Module#included hook to extend base class with ClassMethods module.
More information here: http://www.railstips.org/blog/archives/2009/05/15/include-vs-extend-in-ruby/