From: Trans Date: 2005-10-27T09:12:08+09:00 Subject: Re: Meta methods to govern meta data? It's a plesant notation, but a couple issues with the ideas Gary presents. * How to dynamically set annotations? Even with this nice looking notation you would still need a way to do via normal methods. * It's important to allow annotations for methods that do not neccessarily exit. In this way annotations would be reusable. For example here is what you can do with facets/annotation.rb module MyAnnotations ann :foo, :comment => "foo is alwasy an example" end class MyClass include MyAnnotations ann self, :comment => "This is an annotated class." def foo puts "foo" end ann :foo, :author => "trans" end MyClass.ann.foo.author #=> "trans" MyClass.ann.foo.comment #=> "foo is alwasy an example" MyClass.ann.self.comment #=> "This is an annotated class." MyClass.annotation.comment #=> "This is an annotated class." T.