mrb_define_module_method

Function mrb_define_module_method 

Source
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 on
  • name - The name of the method
  • method - The Ruby proc to bind as a method