[Nitro] help with og!
zimba-tm
zimba.tm at gmail.com
Fri Nov 25 03:57:45 EST 2005
Hi George,
doesn't this break the idea that the classes are implementation independent ?
Is it possible to tell Og to enchant all classes of a module ?
On 25/11/05, George Moschovitis <george.moschovitis at gmail.com> wrote:
> > Og relies on the property method to "enchant" a class and store it. I
> > guess there is another more elegant way to do it, but I don't know it.
> > I help this will be a help for you to start.
>
>
> a more elegant way:
>
> class MyClass < Og::Entity
> ...
> end
>
> or
>
> class MyClass
> include Og::EntityMixin
> ...
> end
>
> if you have at least one property, there is nothing to add...
>
> -g.
>
>
> --
> http://www.gmosx.com
> http://www.navel.gr
> http://www.nitrohq.com
>
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>
--
Cheers,
zimba
http://zimba.oree.ch
More information about the Nitro-general
mailing list