diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-24 08:15:37 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-24 08:15:37 +0000 |
| commit | a9d73d360df0d3bc6b738cb10858ae63f24f847a (patch) | |
| tree | 21fffe519e07d247b641aec887e5fb17eb87e125 /bootstraptest | |
| parent | e7efb13e018c81b1fd29b15640f74d2ee8a7d14f (diff) | |
| download | ruby-a9d73d360df0d3bc6b738cb10858ae63f24f847a.tar.gz ruby-a9d73d360df0d3bc6b738cb10858ae63f24f847a.tar.xz ruby-a9d73d360df0d3bc6b738cb10858ae63f24f847a.zip | |
* eval.c (rb_f_send_bang): abandon the name funcall for private
aware method call.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
| -rw-r--r-- | bootstraptest/test_method.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bootstraptest/test_method.rb b/bootstraptest/test_method.rb index 9a59b63d5..776d6274a 100644 --- a/bootstraptest/test_method.rb +++ b/bootstraptest/test_method.rb @@ -316,7 +316,7 @@ assert_equal '[1, 2]', %q( class C; def m(*a) a end end; assert_equal '1', %q( class C; def m() 7 end; private :m end begin C.new.send(:m); rescue NoMethodError; 1 end ) assert_equal '1', %q( class C; def m() 1 end; private :m end - C.new.funcall(:m) ) + C.new.send!(:m) ) # with block assert_equal '[[:ok1, :foo], [:ok2, :foo, :bar]]', @@ -867,7 +867,7 @@ assert_equal %q{[:ok, :ok, :ok, :ok, :ok, :ok, :ng, :ng]}, %q{ end end - alias funcall send unless defined? funcall + alias send! send unless defined? send! c1 = c2 = nil @@ -899,8 +899,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.funcall :m} - test{o2.funcall :mm} + test{o1.send! :m} + test{o2.send! :mm} test{o1.method(:m).call} test{o2.method(:mm).call} $ans |
