From: Jeremy Whetzel Date: 2003-08-22T13:16:27+09:00 Subject: Re: One Module for one Class? On Thu, 21 Aug 2003 14:00:28 +0900 "Gavin Sinclair" wrote: > The CGI class in the stdlib (lib/cgi.rb) has heaps and heaps of > methods. They are grouped into modules and mixed in. It seems a good > way to do it to me, because it gives you a tangible way of grouping > that is good for documentation. That assumes, of course, that you can > justify so many methods in the first place. > > Some of the modules are explicitly justified because they are > conditionally mixed in. This is another idea I like a lot. I can see how this may help things run a little quicker if I grouped things by function and only loaded them when requested. > It's good from RDoc's point of view, though, because you don't have > to look at millions of methods at once. I haven't messed around much with RDoc, but I can understand your point on this one. Thanks again! Jeremy