From: Shawn Anderson Date: 2007-12-12T08:28:57+09:00 Subject: Re: Ruby globals ------=_Part_30448_25975889.1197415734381 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I would also look at how hard it would be to pass around some kind of Config object to a few parts of the app. Careful consideration should be given to the use of Singletons as they tend to hinder testing. my .02 /Shawn On Dec 5, 2007 11:25 AM, Ilan Berci wrote: > unknown wrote: > > > by my procedures. > > If I'm to avoid globals, then where would be a good place to keep > > these > > options? Should I create an Option class and pass it around? > > > > Thanks for any tips. > > Research the GOF singleton pattern.. it is used extensively to solve the > requirement you currently have > > hth > > ilan > > > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_30448_25975889.1197415734381--