[Nitro] (no subject)
Judson Lester
nyarly at gmail.com
Tue Mar 13 17:30:55 EDT 2007
Can I suggest (at some point) changing property to
def property(*args, &block)
warn "Warning! Deprecated method property. Use attr_accessor."
attr_accessor(*args, &block)
end
- Unless there's a "deprecate" Facet...
Judson
On 3/13/07, George Moschovitis <george.moschovitis at gmail.com> wrote:
> Thanks for this patch, I will review and aply it.
>
> btw, please use
>
> attr_accessor instead of property... property is kind of deprecated.
>
> -g.
>
> On 3/13/07, Antoniolo <antoniolo at gmail.com> wrote:
> > Thanks Judson for explaining that!
> >
> > Here's my first patch.
> >
> > Now you can do things like
> >
> > class Player
> > property :str, Fixnum #shortcut for strength
> > property :int, Fixnum #shortcut for intelligence, it used to result in
> > error
> > end
> >
> > _______________________________________________
> > Nitro-general mailing list
> > Nitro-general at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/nitro-general
> >
> >
>
>
> --
> http://blog.gmosx.com
> http://cull.gr
> http://www.joy.gr
> http://nitroproject.org
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>
--
Q: How does a hacker escape handcuffs?
A: Backslashes.
More information about the Nitro-general
mailing list