From: Trans Date: 2006-12-08T23:40:48+09:00 Subject: Re: #method(false) returns singleton methods? Pe�a wrote: > :From => "Trans [mailto:transfire@gmail.com]" > > # I have to agree with David Black that this true false parameter has no > # sematic quality. That is differs in result from obj.methods to > # class.methods is further confusing on top of the distinctions between > # methods, public_methods, etc. This was brought up a long > # time ago, but > # I still agress with the idea of a sinlge interface that takes symbolic > # "filters". > # > # obj.methods(:singleton) > # obj.methods(:public) > # obj.methods(:all) > # obj.methods(:private, :public) # combination > > +10 big up :-) just to relate this to #each in the method mode var conversation. I can understand matz steering clear of symbolic parameters on the whole, but in this case I agree with your +10 assessment. It's just too fitting a use case. the biggest case in point, how to gather all methods. this blows: mod.public_instance_methods+mod.private_instance_methods+mod.protected_instance_methods t.