mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[DOC] Separated Method#[] from Method#call [Bug #16813] [ci skip]
This commit is contained in:
parent
ac2106acc2
commit
cf90df22c7
1 changed files with 13 additions and 1 deletions
14
proc.c
14
proc.c
|
@ -2271,10 +2271,22 @@ method_clone(VALUE self)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/* Document-method: Method#[]
|
||||||
|
*
|
||||||
|
* call-seq:
|
||||||
|
* meth[args, ...] -> obj
|
||||||
|
*
|
||||||
|
* Invokes the <i>meth</i> with the specified arguments, returning the
|
||||||
|
* method's return value, like #call.
|
||||||
|
*
|
||||||
|
* m = 12.method("+")
|
||||||
|
* m[3] #=> 15
|
||||||
|
* m[20] #=> 32
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* meth.call(args, ...) -> obj
|
* meth.call(args, ...) -> obj
|
||||||
* meth[args, ...] -> obj
|
|
||||||
*
|
*
|
||||||
* Invokes the <i>meth</i> with the specified arguments, returning the
|
* Invokes the <i>meth</i> with the specified arguments, returning the
|
||||||
* method's return value.
|
* method's return value.
|
||||||
|
|
Loading…
Add table
Reference in a new issue