From: Raul Parolari Date: 2007-11-16T04:28:02+09:00 Subject: Re: Module vs Class jack.tang wrote: > Hi Guys > > I am new to ruby, and one question here: what object should I wrap as > Module and what should I wrap as Class, any rules to fellow? > > Thanks > /Jack Besides the reference given above, another good source is D.Black's "Ruby on Rails"; chapter 6, "Class/Module Design" is entirely dedicated to answer your question. Sometimes the same problem can be attacked with different combinations of classes & modules; the examples (and the discussion, where the author indicates his preference) given in the chapter are very interesting in this regard. -- Posted via http://www.ruby-forum.com/.