diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-13 05:51:14 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-13 05:51:14 +0000 |
commit | 304850801475722c686e31c93f82e18ede93ba05 (patch) | |
tree | 63376683c7df7ef30e67d683904694ad9592114d /vm_method.c | |
parent | 609c7420d77aed3492648b6dae7adf118d3a8ab9 (diff) | |
download | ruby-304850801475722c686e31c93f82e18ede93ba05.tar.gz |
vm_method.c: rb_method_entry_at
* vm_method.c (rb_method_entry_at): return the method entry for id at
klass, without ancestors.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vm_method.c b/vm_method.c index ddcec6cd4e..516b87cb3e 100644 --- a/vm_method.c +++ b/vm_method.c @@ -510,6 +510,12 @@ search_method(VALUE klass, ID id, VALUE *defined_class_ptr) return me; } +rb_method_entry_t * +rb_method_entry_at(VALUE klass, ID id) +{ + return lookup_method_table(klass, id); +} + /* * search method entry without the method cache. * |