mrb_module_new

Function mrb_module_new 

Source
pub unsafe extern "C" fn mrb_module_new(
    mrb: *mut mrb_state,
) -> *mut RClass
Expand description

Creates a new module, Module.

Example: void mrb_example_gem_init(mrb_state* mrb) { struct RClass *example_module;

   example_module = mrb_module_new(mrb);
 }

@param mrb The current mruby state. @return [struct RClass *] Reference to the new module.