Use __send__ instead of send; ref #4207

This commit is contained in:
KOBAYASHI Shuji
2019-01-12 22:21:34 +09:00
parent 980b7b5c50
commit 8b951710fe
+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