From: Dave Thomas Date: 2002-02-26T01:17:19+09:00 Subject: Re: Style Question Ron Jeffries writes: > I could build a separate class, SetFactory, and do things over there, > but in Ruby I see no reason to do that. I'm comfortable with a bunch of > factory methods on Set, such as Set.create, except that for those > methods to compile, all the concrete subclasses that Set uses have to be > at least declared before they are used. So the top of the code looks > like this: How about having the concrete classes extend set to add their own factories in # untested class Set class <