summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-13 23:08:27 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-13 23:08:27 +0000
commit6615b9a1d22d2080ed7784e4703cf5d9d07c9e50 (patch)
tree9d33a47ba15957935ea0f27084cca070c806ac83 /proc.c
parent181eb7d5c11571c811c6d57bfd99332334b6e1e8 (diff)
downloadbundler-6615b9a1d22d2080ed7784e4703cf5d9d07c9e50.tar.gz
* proc.c (mnew): Method#new checks for respond_to_missing? with private set to true
[ruby-core:26069] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index 5ed3c0184c..b7c632c856 100644
--- a/proc.c
+++ b/proc.c
@@ -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, 1, sym))) {
+ if (RTEST(rb_funcall(obj, rmiss, 2, sym, Qtrue))) {
def = ALLOC(rb_method_definition_t);
def->type = VM_METHOD_TYPE_MISSING;
def->original_id = id;