diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-24 11:10:44 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-24 11:18:27 +0900 |
commit | cf90df22c74da2f87421749e8d065cfbd3812afd (patch) | |
tree | 6322b2faa7c41391d205d21eaf3e551680e15aca | |
parent | ac2106acc276854ae2ac8cc5fa6859aa28362f2f (diff) | |
download | ruby-cf90df22c74da2f87421749e8d065cfbd3812afd.tar.gz |
[DOC] Separated Method#[] from Method#call [Bug #16813] [ci skip]
-rw-r--r-- | proc.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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: * meth.call(args, ...) -> obj - * meth[args, ...] -> obj * * Invokes the <i>meth</i> with the specified arguments, returning the * method's return value. |