diff --git a/ext/v8/v8.cpp b/ext/v8/v8.cpp index d52fc6e..b601402 100644 --- a/ext/v8/v8.cpp +++ b/ext/v8/v8.cpp @@ -11,21 +11,14 @@ #include extern "C" { - /** - * ruby init method for the extension - */ void Init_v8(); } VALUE rb_mModule; extern "C" { - void Init_v8() { - - rb_mModule = rb_define_module("V8"); - - V8_To = rb_define_module_under(rb_mModule, "To"); - + void Init_v8() { + V8_To = rb_define_module_under(rb_define_module("V8"), "To"); rr_init_cxt(); rr_init_str(); rr_init_script();