summaryrefslogtreecommitdiffstats
path: root/proc.c
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-22 18:53:25 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-22 18:53:25 +0000
commit8d657d73b6b302b3eca49dc1184ba32c6cfefa46 (patch)
treefa8d9b18a7f09f42a9fbbb75b26cef2aeec31fc6 /proc.c
parenta3338e1863be97ddae2223f8a36530014a7ab6f4 (diff)
downloadruby-8d657d73b6b302b3eca49dc1184ba32c6cfefa46.tar.gz
ruby-8d657d73b6b302b3eca49dc1184ba32c6cfefa46.tar.xz
ruby-8d657d73b6b302b3eca49dc1184ba32c6cfefa46.zip
* eval.c (rb_mod_define_method): Doc fix (accepts UnboundMethod too)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index 823cb2350..eafcf336b 100644
--- a/proc.c
+++ b/proc.c
@@ -1191,7 +1191,7 @@ rb_mod_public_instance_method(VALUE mod, VALUE vid)
* define_method(symbol) { block } => proc
*
* Defines an instance method in the receiver. The _method_
- * parameter can be a +Proc+ or +Method+ object.
+ * parameter can be a +Proc+, a +Method+ or an +UnboundMethod+ object.
* If a block is specified, it is used as the method body. This block
* is evaluated using <code>instance_eval</code>, a point that is
* tricky to demonstrate because <code>define_method</code> is private.