mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Use __send__ instead of send.
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user