From: Robert Klemme Date: 2007-06-15T18:50:06+09:00 Subject: Re: Module/Class Organization On 15.06.2007 08:28, Trans wrote: > > On Jun 2, 1:00 pm, Robert Klemme wrote: >>> 3) EXTERNAL BASE >>> In this case the organizing module contains a plurality of >>> subclasses. The base class is external to this module. >>> class Foo >>> end >>> module Foos >>> class Bar < Foo >>> end >>> end >> I haven't seen this one and would not do it because it does not ensure >> proper use of namespaces. > > Sorry for the delayed response on this. So very busy. > > Could you explain further what you mean by "does not ensure proper > use". Foo is not part of the namespace but its subclasses are. Considering that they seem to be part of one library and thus closely related I find this separation "improper" because it a) clutters the global namespace more than necessary and b) it separates things that rather belong together. Kind regards robert