Use __send__ instead of send.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2018-09-01 11:02:59 +09:00
parent 0c6353aa2c
commit 05f377dee4
+1 -1
View File
@@ -27,7 +27,7 @@ class Proc
pproc = self
make_curry = proc do |given_args=[]|
send(type) do |*args|
__send__(type) do |*args|
new_args = given_args + args
if new_args.size >= arity
pproc[*new_args]