From 334f3dd5cec5c753b943868f2bc9063bc9239376 Mon Sep 17 00:00:00 2001 From: marcandre Date: Tue, 22 Jun 2010 04:56:37 +0000 Subject: merge from trunk (r28379) * class.c: rdoc fix [ruby-core:30449] * object.c: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- class.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'class.c') diff --git a/class.c b/class.c index 5c909081cf..a6871baeea 100644 --- a/class.c +++ b/class.c @@ -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 false, the * instance methods in mod 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 obj. * If the optional all parameter is true, the list will include * methods in modules included in obj. + * Only public and protected singleton methods are returned. * * module Other * def three() end -- cgit v1.2.3