Merge pull request #2162 from ksss/__send__

use Kernel#__send__ insteard of Kernel#send
This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-05-01 08:35:04 +09:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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?