[Nitro] Glue to facets plan

TRANS transfire at gmail.com
Wed Apr 12 14:43:39 EDT 2006


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.




More information about the Nitro-general mailing list