diff options
author | NARUSE, Yui <naruse@airemix.jp> | 2020-11-05 20:51:17 +0900 |
---|---|---|
committer | NARUSE, Yui <naruse@airemix.jp> | 2020-11-05 20:51:48 +0900 |
commit | b29fe5eb2ded0363c631b2739676e631ed024d66 (patch) | |
tree | 29512531ed3afcadd7dc02c5ac72d6318bc880e2 /vm_eval.c | |
parent | b2ca183cc94c3de89c68d81d086c7884d142fb17 (diff) |
Add description __send__ is safer
Diffstat (limited to 'vm_eval.c')
-rw-r--r-- | vm_eval.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1085,12 +1085,14 @@ send_internal_kw(int argc, const VALUE *argv, VALUE recv, call_type scope) * foo.__send__(string [, args...]) -> obj * * Invokes the method identified by _symbol_, passing it any - * arguments specified. You can use <code>__send__</code> if the name - * +send+ clashes with an existing method in _obj_. + * arguments specified. * When the method is identified by a string, the string is converted * to a symbol. * * BasicObject implements +__send__+, Kernel implements +send+. + * <code>__send__</code> is safer than +send+ + * when _obj_ has the same method name like <code>Socket</code>. + * See also <code>public_send</code>. * * class Klass * def hello(*args) |