Merge pull request #4224 from shuujii/use-__send__-instead-of-send

Use `__send__` instead of `send`; ref #4207
This commit is contained in:
Yukihiro "Matz" Matsumoto
2019-01-13 08:03:14 +09:00
committed by GitHub
+2 -2
View File
@@ -263,10 +263,10 @@ assert('Exception 13') do
end
assert('Exception 14') do
def exception_test14; UnknownConstant; end
def (o = Object.new).exception_test14; UnknownConstant end
a = :ng
begin
send(:exception_test14)
o.__send__(:exception_test14)
rescue
a = :ok
end