Commit d6b4cdb6 authored by ksss's avatar ksss

use Kernel#__send__ insteard of Kernel#send

parent 2cb54e4b
......@@ -3,7 +3,7 @@ class Symbol
def to_proc
->(obj,*args,&block) do
obj.send(self, *args, &block)
obj.__send__(self, *args, &block)
end
end
......
......@@ -202,7 +202,7 @@ module Enumerable
raise ArgumentError, "too many arguments" if args.size > 2
if Symbol === args[-1]
sym = args[-1]
block = ->(x,y){x.send(sym,y)}
block = ->(x,y){x.__send__(sym,y)}
args.pop
end
if args.empty?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment