[Nitro] Glue to facets plan

George Moschovitis george.moschovitis at gmail.com
Wed Apr 12 14:27:07 EDT 2006


It allows you to configure a class. I think the rdoc comments in
configuration.rb are self explanatory.

here is an example:

class MyClass
  setting :my_setting, :default => 5, :doc => 'this is a simple setting'
end

you can access the setting like this:

MyClass.my_setting
MyClass.my_setting = 5
Configuration.MyClass.my_setting # works even before MyClass is defined!
Configuration.settings # returns all settings

etc, etc...

-g.


On 4/12/06, TRANS <transfire at gmail.com> wrote:
> Could someone give me a nice explination of this, what it does and the
> how it goes about doing it. Thanks.
>
> > >    configuration.rb
> > >    settings.rb
>
> T.
>
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>


--
http://www.gmosx.com
http://www.navel.gr
http://www.nitrohq.com




More information about the Nitro-general mailing list