From: jos@... (Jos Backus) Date: 2002-06-08T08:36:57+09:00 Subject: Re: Returning an instance from a different class from new In article <20020607005906.GA6618@digikata.com>, Alan Chen wrote: >> module FooFactory >> def build(sel, field) >BTW, if you change the signature of build to > > def self.build(sel,field) > >you can eliminate the need to do the "include FooFactory" Yes, that works, but why? self.type prints as "Module". Thanks, Jos -- Jos Backus _/ _/_/_/ Santa Clara, CA _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ jos@catnook.com _/_/ _/_/_/ use Std::Disclaimer;