From: Ben Bleything Date: 2007-07-25T04:34:10+09:00 Subject: Re: attributes ala java annotations or .Net attributes? On Wed, Jul 25, 2007, Kyle Schmitt wrote: > Does ruby have attributes ala java annotations or .Net attributes? > I've never seen them in use, hence my wondering. > Right now I've got a pretty big test-suite written in ruby & watir, > and I've got alot of old code in it. It would be nice if I just was > able to put in something like an [obsolete]/ tag, and have > it just ignored, or have a warning popup automatically to say "Your'e > using an obsolete method, get with it!", or to bip me on the head... It's not exactly what you're looking for, but there's a library called 'deprecated' that can be used to achieve that sort of result: http://rubyforge.org/projects/deprecated/ Ben