pub fn mrb_define_module_method(
_vm: &mut VM,
module: Rc<RModule>,
name: &str,
method: RProc,
)Expand description
Defines a Ruby method (RProc) on a Ruby module.
ยงArguments
_vm- The virtual machine instance (unused)module- The module to define the method onname- The name of the methodmethod- The Ruby proc to bind as a method