summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-28 11:45:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-28 11:45:21 +0000
commit2a4c87dc31b3774b8f8f2ab7b74f6d864f41a804 (patch)
tree7ebced0774e05f5a00f78f93d94e15c5d7b202e1 /vm_method.c
parent2210709b79222ecd2d9758f7316fdbd7c068ea84 (diff)
downloadbundler-2a4c87dc31b3774b8f8f2ab7b74f6d864f41a804.tar.gz
Add refinements support to method/instance_method.
[Fix GH-2034] From: manga_osyo <manga.osyo@gmail.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/vm_method.c b/vm_method.c
index 3333ea16b4..76fdb2069f 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -899,6 +899,12 @@ method_entry_resolve_refinement(VALUE klass, ID id, int with_refinement, VALUE *
return me;
}
+const rb_method_entry_t *
+rb_method_entry_with_refinements(VALUE klass, ID id, VALUE *defined_class_ptr)
+{
+ return method_entry_resolve_refinement(klass, id, TRUE, defined_class_ptr);
+}
+
MJIT_FUNC_EXPORTED const rb_callable_method_entry_t *
rb_callable_method_entry_with_refinements(VALUE klass, ID id, VALUE *defined_class_ptr)
{