summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-14 04:02:00 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-14 04:02:00 +0000
commitb83d68a38fcc4d1e499bc7c52a96499fbecb0681 (patch)
tree4ec648be5d68de6b4c21e6e9099287ed097a47af /proc.c
parenta370556cd289ee8bffaca769328c3d0de0928af2 (diff)
proc.c: method by respond_to_missing?
* proc.c (mnew_from_me): method by respond_to_missing? should be owned by the original class. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/proc.c b/proc.c
index 3e22ebd156..dd481870ae 100644
--- a/proc.c
+++ b/proc.c
@@ -1139,6 +1139,7 @@ mnew_from_me(rb_method_entry_t *me, VALUE defined_class, VALUE klass,
if (obj != Qundef && !rb_method_basic_definition_p(klass, rmiss)) {
if (RTEST(rb_funcall(obj, rmiss, 2, sym, scope ? Qfalse : Qtrue))) {
me = 0;
+ defined_class = klass;
goto gen_method;
}