mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* proc.c (rb_mod_define_method): doc fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e12b255cfc
commit
78ddb4f603
1 changed files with 1 additions and 1 deletions
2
proc.c
2
proc.c
|
@ -1288,7 +1288,7 @@ rb_mod_define_method(int argc, VALUE *argv, VALUE mod)
|
|||
* define_singleton_method(symbol) { block } => proc
|
||||
*
|
||||
* Defines a singleton 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.
|
||||
*
|
||||
* class A
|
||||
|
|
Loading…
Reference in a new issue