1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* proc.c (rb_method_entry_arity): support optimized method (send).

* test/ruby/test_method.rb: add a test for above.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2009-07-28 10:41:11 +00:00
parent 49991ff6f8
commit 9050b61dcb
3 changed files with 18 additions and 0 deletions

View file

@ -51,6 +51,10 @@ class TestMethod < Test::Unit::TestCase
assert_equal(-3, method(:mo6).arity)
end
def test_arity_special
assert_equal(-1, method(:__send__).arity)
end
def test_unbind
assert_equal(:derived, Derived.new.foo)
um = Derived.new.method(:foo).unbind