summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/vm_method.c b/vm_method.c
index 4059312953..1e57176fcf 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -1198,20 +1198,26 @@ rb_mod_undef_method(int argc, VALUE *argv, VALUE mod)
*
* module A
* def method1() end
+ * def protected_method1() end
+ * protected :protected_method1
* end
* class B
* def method2() end
+ * def private_method2() end
+ * private :private_method2
* end
* class C < B
* include A
* def method3() end
* end
*
- * A.method_defined? :method1 #=> true
- * C.method_defined? "method1" #=> true
- * C.method_defined? "method2" #=> true
- * C.method_defined? "method3" #=> true
- * C.method_defined? "method4" #=> false
+ * A.method_defined? :method1 #=> true
+ * C.method_defined? "method1" #=> true
+ * C.method_defined? "method2" #=> true
+ * C.method_defined? "method3" #=> true
+ * C.method_defined? "protected_method1" #=> true
+ * C.method_defined? "method4" #=> false
+ * C.method_defined? "private_method2" #=> false
*/
static VALUE