From 8b871e67c159dd7baefd951e82c50ae9d03393e6 Mon Sep 17 00:00:00 2001 From: marcandre Date: Tue, 22 Sep 2009 18:53:25 +0000 Subject: * eval.c (rb_mod_define_method): Doc fix (accepts UnboundMethod too) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proc.c b/proc.c index 823cb23503..eafcf336bf 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 instance_eval, a point that is * tricky to demonstrate because define_method is private. -- cgit v1.2.3