aboutsummaryrefslogtreecommitdiffstats
path: root/bootstraptest/test_method.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-10 05:34:50 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-10 05:34:50 +0000
commit5ee029f62cbb728453f6db3ae54127a376696447 (patch)
tree67f23f01c6c105121d461d0b1ca84725688f58b0 /bootstraptest/test_method.rb
parent7ded13f54b4963f9e535d4909c9957d33f68f1ed (diff)
downloadruby-5ee029f62cbb728453f6db3ae54127a376696447.tar.gz
* eval.c (rb_f_public_send): rename invoke_method to public_send.
it now invokes public method only no matter how it's called. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_method.rb')
-rw-r--r--bootstraptest/test_method.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/bootstraptest/test_method.rb b/bootstraptest/test_method.rb
index 89488a40bc..8b5d584e31 100644
--- a/bootstraptest/test_method.rb
+++ b/bootstraptest/test_method.rb
@@ -336,7 +336,7 @@ assert_equal '1', %q( class C; def m(x,a=7) a end end;
assert_equal '[1, 2]', %q( class C; def m(*a) a end end;
C.new.send(:m,1,2).inspect )
assert_equal '1', %q( class C; def m() 7 end; private :m end
- begin C.new.invoke_method(:m); rescue NoMethodError; 1 end )
+ begin C.new.public_send(:m); rescue NoMethodError; 1 end )
assert_equal '1', %q( class C; def m() 1 end; private :m end
C.new.send(:m) )
@@ -919,8 +919,8 @@ assert_equal %q{[:ok, :ok, :ok, :ok, :ok, :ok, :ng, :ng]}, %q{
test{o2.mm}
test{o1.send :m}
test{o2.send :mm}
- test{o1.invoke_method :m}
- test{o2.invoke_method :mm}
+ test{o1.public_send :m}
+ test{o2.public_send :mm}
test{o1.method(:m).call}
test{o2.method(:mm).call}
$ans