diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-04 03:05:03 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-04 03:05:03 +0000 |
commit | 6e56d645f0e176f7186027d0e0964ca62f4d4b6f (patch) | |
tree | f906120d9d3078969ae4263cc0a2542030c70054 /class.c | |
parent | e21f885bb024a622b7b95c3f13f2bda582dfbf0b (diff) | |
download | ruby-6e56d645f0e176f7186027d0e0964ca62f4d4b6f.tar.gz |
* lib/delegate.rb (Delegator#methods): Kernel#methods receives
zero or one argument. [ruby-core:37118] [Bug #4882]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r-- | class.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1111,11 +1111,13 @@ rb_class_public_instance_methods(int argc, VALUE *argv, VALUE mod) /* * call-seq: - * obj.methods -> array + * obj.methods(all=true) -> array * * Returns a list of the names of public and protected methods of * <i>obj</i>. This will include all the methods accessible in * <i>obj</i>'s ancestors. + * If the <i>all</i> parameter is set to <code>false</code>, only those methods + * in the receiver will be listed. * * class Klass * def klass_method() |