From: Max Williams Date: 2007-11-02T22:29:15+09:00 Subject: Re: Get only the non-inherited methods of a class Yukihiro Matsumoto wrote: > Giving false to #methods. > > Stringh.methods > => ["inspect", "send", "class_eval",... > String.methods(false) > => [] Thanks matz, but why does that return an empty array? Shouldn't it be ["%", "*", "+", "<<", etc]? (actually for me it returns ["yaml_new", "yaml_tag_subclasses?"], each of which gives me a NoMethodError when i try to call it on a string) Would you mind explaining what passing false to methods does? thanks! -- Posted via http://www.ruby-forum.com/.