From: Mathieu Bouchard Date: 2005-10-05T09:45:15+09:00 Subject: Re: ObjectSpace.each_object, but not Symbols? On Tue, 4 Oct 2005, TRANS wrote: > I'm writing an method-annotations system and since methods aren't first > class objects, Symbol seemed like the best place to put them. Why? I'd rather put those things in the class that the method belongs to. Make a hashtable per class, e.g. class Module;attr_accessor :doc;end Fixnum.doc||={} Fixnum.doc[:+] = "addition" etc. ____________________________________________________________________ Mathieu Bouchard - t�l:+1.514.383.3801 - http://artengine.ca/matju Freelance Digital Arts Engineer, Montr�al QC Canada