From 8d679942bb62dceb69c3177a9ab7de18942863a1 Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 25 Sep 2008 18:04:34 +0000 Subject: * vm_eval.c (Init_vm_eval): define module_eval, class_eval and eval here for rdoc. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_eval.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vm_eval.c') diff --git a/vm_eval.c b/vm_eval.c index de6d0e88c..7ccf6d9b9 100644 --- a/vm_eval.c +++ b/vm_eval.c @@ -1319,6 +1319,7 @@ rb_make_backtrace(void) void Init_vm_eval(void) { + rb_define_global_function("eval", rb_f_eval, -1); rb_define_global_function("catch", rb_f_catch, -1); rb_define_global_function("throw", rb_f_throw, -1); @@ -1334,6 +1335,8 @@ Init_vm_eval(void) rb_define_method(rb_cModule, "module_exec", rb_mod_module_exec, -1); rb_define_method(rb_cModule, "class_exec", rb_mod_module_exec, -1); + rb_define_method(rb_cModule, "module_eval", rb_mod_module_eval, -1); + rb_define_method(rb_cModule, "class_eval", rb_mod_module_eval, -1); rb_define_global_function("caller", rb_f_caller, -1); } -- cgit