[Nitro] Singletons

transfire at gmail.com transfire at gmail.com
Sun Feb 4 08:37:54 EST 2007



On Feb 4, 7:17 am, "George Moschovitis" <george.moschovi... at gmail.com>
wrote:
> Dear devs,
>
> I am considering making some Nitro::Server and Nitro::Dispatcher singletons.
> Plus try to remove extraneous refs to these classes from all over the place
> (I will probably only keep the refs from Context). For example I will remove
> Dispatcher#server. This will simplify the code plus give you easy access to
> the Dispatcher and Server from everywhere. (kind of like Context.current etc
> is very helpful to access the context from your methods).
>
> any comments?

Please read:

  http://onestepback.org/index.cgi/Tech/Ruby/
DependencyInjectionInRuby.rdoc

T.



More information about the Nitro-general mailing list