diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-05-01 08:35:04 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-05-01 08:35:04 +0900 |
| commit | 652a5339655fd9970ff25fc91c71ac60ff69d32d (patch) | |
| tree | a390f6b9f24dffabd54ac2afb8c70f7f9fa466b4 | |
| parent | 2cb54e4b9d523e85b65a30b7af593791e8ac83f0 (diff) | |
| parent | d6b4cdb6accc7c86698de9ba38fdd52c59d2146b (diff) | |
| download | mruby-652a5339655fd9970ff25fc91c71ac60ff69d32d.tar.gz mruby-652a5339655fd9970ff25fc91c71ac60ff69d32d.zip | |
Merge pull request #2162 from ksss/__send__
use Kernel#__send__ insteard of Kernel#send
| -rw-r--r-- | mrbgems/mruby-symbol-ext/mrblib/symbol.rb | 2 | ||||
| -rw-r--r-- | mrblib/enum.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-symbol-ext/mrblib/symbol.rb b/mrbgems/mruby-symbol-ext/mrblib/symbol.rb index f4bf23cb1..4cf18f647 100644 --- a/mrbgems/mruby-symbol-ext/mrblib/symbol.rb +++ b/mrbgems/mruby-symbol-ext/mrblib/symbol.rb @@ -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 diff --git a/mrblib/enum.rb b/mrblib/enum.rb index 4f9682ac7..41fd97fe7 100644 --- a/mrblib/enum.rb +++ b/mrblib/enum.rb @@ -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? |
