[Nitro] Glue to facets plan
George Moschovitis
george.moschovitis at gmail.com
Sat Apr 15 05:03:58 EDT 2006
yeah, but specialized for configuration ;-)
-g.
On 4/12/06, TRANS <transfire at gmail.com> wrote:
> On 4/12/06, George Moschovitis <george.moschovitis at gmail.com> wrote:
> > 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
>
> Looks like annotations for classes.
>
> 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