aboutsummaryrefslogtreecommitdiffstats
path: root/lib/forwardable.rb
diff options
context:
space:
mode:
authorNARUSE, Yui <naruse@airemix.jp>2020-11-05 20:54:34 +0900
committerNARUSE, Yui <naruse@airemix.jp>2020-11-05 20:54:34 +0900
commit3407b7d8a620562d0584cd2968965317f331f8cc (patch)
treec1aa1764e2f28f30280030aa511a4ff5665d382c /lib/forwardable.rb
parentb29fe5eb2ded0363c631b2739676e631ed024d66 (diff)
downloadruby-3407b7d8a620562d0584cd2968965317f331f8cc.tar.gz
Revert "Prefer #send over #__send__ when it is clear there is no possible conflict"
This reverts commit 4dba0c1a8e3cc08664872e637099c4e7d58d24d3. Matz's comment is "send is not deprecated. __send__ is safer". But "Prefer #send over #__send__" is not reasonable.
Diffstat (limited to 'lib/forwardable.rb')
-rw-r--r--lib/forwardable.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/forwardable.rb b/lib/forwardable.rb
index 95596ba18d..c720feb4a4 100644
--- a/lib/forwardable.rb
+++ b/lib/forwardable.rb
@@ -189,7 +189,7 @@ module Forwardable
# If it's not a class or module, it's an instance
mod = Module === self ? self : singleton_class
ret = mod.module_eval(&gen)
- mod.send(:ruby2_keywords, ali) if RUBY_VERSION >= '2.7'
+ mod.__send__(:ruby2_keywords, ali) if RUBY_VERSION >= '2.7'
ret
end