diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-14 04:02:00 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-14 04:02:00 +0000 |
commit | b83d68a38fcc4d1e499bc7c52a96499fbecb0681 (patch) | |
tree | 4ec648be5d68de6b4c21e6e9099287ed097a47af /proc.c | |
parent | a370556cd289ee8bffaca769328c3d0de0928af2 (diff) | |
download | ruby-b83d68a38fcc4d1e499bc7c52a96499fbecb0681.tar.gz |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |