diff options
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -595,7 +595,9 @@ rb_mod_initialize(argc, argv, module) VALUE *argv; VALUE module; { - rb_mod_module_eval(0, 0, module); + if (rb_block_given_p()) { + rb_mod_module_eval(0, 0, module); + } return Qnil; } |