summaryrefslogtreecommitdiff
path: root/vm_eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-28 03:09:16 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-28 03:09:16 +0000
commit102918a3ee06b30023e1b7c7fe1103179049c1d9 (patch)
tree81ff0a9316d3abe54e8aff5e33e4729faeaff3f1 /vm_eval.c
parent438b28d3f7a3989cc01020d2f14f9b2cfb859e7c (diff)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/vm_eval.c b/vm_eval.c
index befe33adca..8597bfb060 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -110,6 +110,14 @@ vm_call0(rb_thread_t* th, VALUE recv, VALUE id, int argc, const VALUE *argv,
if (!(def = me->def)) return Qnil;
goto again;
}
+ case VM_METHOD_TYPE_MISSING: {
+ VALUE new_args = rb_ary_new4(argc, argv);
+
+ RB_GC_GUARD(new_args);
+ rb_ary_unshift(new_args, ID2SYM(id));
+ return rb_funcall2(recv, rb_intern("method_missing"),
+ argc+1, RARRAY_PTR(new_args));
+ }
case VM_METHOD_TYPE_OPTIMIZED: {
switch (def->body.optimize_type) {
case OPTIMIZED_METHOD_TYPE_SEND: