Jim Weirich wrote:
> [...] The 
> example is confusing in that the client immediately passes the created 
> object to the calling context [...]

Oops, Let me correct this.  I see that the create_something does not 
actually return the created object.  So the confusion is not that it 
returns something (which it does not), but only that the name 
"create_something" fooled me into thinking it _did_ return something.  I 
didn't read it closely enough.

On my second point about creating multiple types, I see the Maze example 
does cover that aspect of abstract factories ... at least implicitly.

--
-- Jim Weirich


-- 
Posted via http://www.ruby-forum.com/.