From: Joel VanderWerf Date: 2006-12-03T15:04:40+09:00 Subject: Re: Factory pattern, abstract base class James Edward Gray II wrote: > On Dec 2, 2006, at 7:27 PM, Joel VanderWerf wrote: > >> module Foo >> class Bar >> def self.new(arg) >> return super() if self != Foo::Bar > > I don't believe that line does what you intend. Try using your code > with something like: > > fb = Foo::Baz.new('baz') # => # It's a little funny to say "baz" twice, is your point? -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407