From: Joel VanderWerf Date: 2005-08-05T05:28:41+09:00 Subject: Re: interesting test tool... looking for opinions. Phil Tomson wrote: ... > Why couldn't you add metadata to methods? > > class Metod > def metadata > @metadata > end > > def metadata= data > @metadata = data > end > end > > def foo > "foo" > end > > > foometh = self.method(:foo) > > foometh.metadata = "This method just says foo" > > puts foometh.metadata #=> This method just says foo foometh2 = self.method(:foo) puts foometh2.metadata #=> nil The metadata doesn't really stay with the method, only with the Method instance. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407