mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
aa78c979e1
commit
8b871e67c1
1 changed files with 1 additions and 1 deletions
2
proc.c
2
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.
|
||||
|
|
Loading…
Reference in a new issue