[Nitro] Simpler configuration method?

George Moschovitis george.moschovitis at gmail.com
Thu Jan 25 06:56:25 EST 2007


I think that globals work like a predefined hash in Ruby. Ie.

Nitro.settings[:root_dir] = 'public'

->

Global.settings[:root_dir] = ...

->

GlobalSettings[:root_dir] = ...

->

$[:root_dir] = ...

->

$root_dir = ...


-g.


On 1/25/07, George Moschovitis <george.moschovitis at gmail.com> wrote:
>
> Yes, globals are indeed evil...
>
>
> Lars,
>
> can you please  explain me why are globals evils in this pecific usage
> scenario?
>
> -g.
>
>
> --
> http://blog.gmosx.com
> http://cull.gr
> http://www.joy.gr
> http://nitroproject.org
>



-- 
http://blog.gmosx.com
http://cull.gr
http://www.joy.gr
http://nitroproject.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20070125/71dea6bb/attachment.html 


More information about the Nitro-general mailing list