From: Jeff Wood Date: 2005-10-31T04:53:05+09:00 Subject: Re: C# attributes in Ruby? ------=_Part_21431_8033739.1130701953162 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I see this as a good way to move towards a TestNG implementation for Ruby. Thanks for your work. j. On 10/30/05, Trans wrote: > > Yes. I'll work on that --annotation.rb is a new lib. It works pretty > simply though: > > class X > ann :GetValue, :SomeFancyAttribute =3D> :EvenMoreFancyValue > end > > p X.ann.GetValue.SomeFancyAttribute > =3D> :EvenMoreFancyValue > > To annotate a class: > > X.ann :self, :name =3D> value > > or just > > X.annotation :name =3D> :"value" > > which also applies to any object. Class and module annotations are > inherited though. > > I'll work on the docs. Thanks for pointing that out. > > T. > > > -- "http://ruby-lang.org -- do you ruby?" Jeff Wood ------=_Part_21431_8033739.1130701953162--