diff options
author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-04 03:49:54 +0000 |
---|---|---|
committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-04 03:49:54 +0000 |
commit | ad0a912f413a29f858f2612e99f98632a8fc7457 (patch) | |
tree | ead98bd7e3fbfc61c07eebb3a13bf7da7e24f2f6 /proc.c | |
parent | 757fb65d4cac47d8c85abf403be2d9c0718acf47 (diff) | |
download | ruby-ad0a912f413a29f858f2612e99f98632a8fc7457.tar.gz ruby-ad0a912f413a29f858f2612e99f98632a8fc7457.tar.xz ruby-ad0a912f413a29f858f2612e99f98632a8fc7457.zip |
* proc.c (mnew): Fix scope issue [ruby-core:26069]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -902,7 +902,7 @@ mnew(VALUE klass, VALUE obj, ID id, VALUE mclass, int scope) VALUE sym = ID2SYM(id); if (obj != Qundef && !rb_method_basic_definition_p(klass, rmiss)) { - if (RTEST(rb_funcall(obj, rmiss, 2, sym, Qtrue))) { + if (RTEST(rb_funcall(obj, rmiss, 2, sym, scope ? Qfalse : Qtrue))) { def = ALLOC(rb_method_definition_t); def->type = VM_METHOD_TYPE_MISSING; def->original_id = id; |