On Saturday 07 August 2010, Rajarshi C. wrote:
|I have 2
classes, Parser and Util in parser.rb and util.rb respectively.
a lot of methods.
|I want to put them both inside one module but keep the
|in separate files.
|So basically there will be 3 files
now: mod.rb (that will have the
|module) and the 2 files mentioned
|Is it possible?
If I understand correctly what
you mean, of course you can:
Actually, you don’t need mod.rb, unless you want to put something
in your module which isn’t related to any of the two classes.
I hope this