diff options
author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-22 04:52:03 +0000 |
---|---|---|
committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-22 04:52:03 +0000 |
commit | 52ebd4b7f48a443152bf09343d81f57e783c0c63 (patch) | |
tree | a04e576e5d5e9831f4b9551b6cbdf66f73f134ca /class.c | |
parent | 8af6c8ddc249fc058994244f9d7823b1ecd07b67 (diff) | |
download | ruby-52ebd4b7f48a443152bf09343d81f57e783c0c63.tar.gz |
* class.c: rdoc fix [ruby-core:30449]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r-- | class.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -866,8 +866,8 @@ class_instance_method_list(int argc, VALUE *argv, VALUE mod, int obj, int (*func * call-seq: * mod.instance_methods(include_super=true) -> array * - * Returns an array containing the names of instance methods that is callable - * from outside in the receiver. For a module, these are the public methods; + * Returns an array containing the names of the public and protected instance + * methods in the receiver. For a module, these are the public and protected methods; * for a class, they are the instance (not singleton) methods. With no * argument, or with an argument that is <code>false</code>, the * instance methods in <i>mod</i> are returned, otherwise the methods @@ -952,7 +952,7 @@ rb_class_public_instance_methods(int argc, VALUE *argv, VALUE mod) * call-seq: * obj.methods -> array * - * Returns a list of the names of methods publicly accessible in + * 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. * @@ -1041,6 +1041,7 @@ rb_obj_public_methods(int argc, VALUE *argv, VALUE obj) * Returns an array of the names of singleton methods for <i>obj</i>. * If the optional <i>all</i> parameter is true, the list will include * methods in modules included in <i>obj</i>. + * Only public and protected singleton methods are returned. * * module Other * def three() end |