diff options
Diffstat (limited to 'class.c')
-rw-r--r-- | class.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -865,8 +865,8 @@ class_instance_method_list(int argc, VALUE *argv, VALUE mod, int (*func) (ID, lo * 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 @@ -954,6 +954,7 @@ rb_class_public_instance_methods(int argc, VALUE *argv, VALUE mod) * 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 |