diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-27 02:55:08 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-27 02:55:08 +0000 |
commit | aaa27526211c6a551bb3e7c11a04ed65910b2905 (patch) | |
tree | 822b88d6ec51970de422f635b2ebe979c9e18cd2 /proc.c | |
parent | 91e96335c1fda8c34268bd4f7f8760345551550e (diff) |
merges r25041 from trunk into ruby_1_9_1.
--
* eval.c (rb_mod_define_method): Doc fix (accepts UnboundMethod too)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1082,7 +1082,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. |