summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-22 18:56:29 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-22 18:56:29 +0000
commit7c63ba4efe691ebcf006159a68cd01fa31c3ff24 (patch)
tree7a99f8109ba2c80de0389b3a3a8150cc1e51ae34 /eval.c
parentbd7d5e5e08be211d6e97e2c4f8988ee0bc5df61d (diff)
* eval.c (rb_mod_define_method): Doc fix (accepts UnboundMethod too)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index a4043c26ad..f2c7c55485 100644
--- a/eval.c
+++ b/eval.c
@@ -10048,7 +10048,7 @@ rb_obj_is_method(m)
* 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.