From: Trevor Wennblom Date: 2012-03-15T05:53:18+09:00 Subject: [ruby-core:43282] [patch] update obj.methods() documentation in class.c % svn diff Index: class.c =================================================================== --- class.c (revision 35022) +++ class.c (working copy) @@ -991,11 +991,11 @@ /* * call-seq: - * obj.methods -> array + * obj.methods(all=true) -> array * - * Returns a list of the names of public and protected methods of - * obj. This will include all the methods accessible in - * obj's ancestors. + * Returns the list of public and protected methods of obj. If + * the all parameter is set to false, only those methods + * in the receiver will be listed. * * class Klass * def klass_method() @@ -1003,7 +1003,7 @@ * end * k = Klass.new * k.methods[0..9] #=> [:klass_method, :nil?, :===, - * # :==~, :!, :eql? + * # :=~, :!~, :eql? * # :hash, :<=>, :class, :singleton_class] * k.methods.length #=> 57 */