summaryrefslogtreecommitdiff
path: root/lib/forwardable.rb
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2020-11-05 11:23:27 +0100
committerBenoit Daloze <eregontp@gmail.com>2020-11-05 11:23:27 +0100
commit4dba0c1a8e3cc08664872e637099c4e7d58d24d3 (patch)
treed86deaec8225b8c82acc58a9ce655d94b4bd9311 /lib/forwardable.rb
parent2aa9a50dcc88b876f8298adda737400973e8029f (diff)
downloadruby-4dba0c1a8e3cc08664872e637099c4e7d58d24d3.tar.gz
Prefer #send over #__send__ when it is clear there is no possible conflict
* Reverts part of 3198e7abd70bd2af977f2bb6c967e9df8f91adb0. * If the rule is #send should be deprecated, that should be ruled by matz, there is no such rule currently and gems seem to prefer #send overwhelmingly.
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 c720feb4a4..95596ba18d 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