From b29fe5eb2ded0363c631b2739676e631ed024d66 Mon Sep 17 00:00:00 2001 From: "NARUSE, Yui" Date: Thu, 5 Nov 2020 20:51:17 +0900 Subject: Add description __send__ is safer --- vm_eval.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'vm_eval.c') diff --git a/vm_eval.c b/vm_eval.c index 20117bb79d..b26c88ffe0 100644 --- a/vm_eval.c +++ b/vm_eval.c @@ -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 __send__ 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+. + * __send__ is safer than +send+ + * when _obj_ has the same method name like Socket. + * See also public_send. * * class Klass * def hello(*args) -- cgit v1.2.3