Skip to main content

Module helpers

Module helpers 

Source

Functionsยง

mrb_call_block
Calls a Ruby block (Proc) with the given receiver and arguments.
mrb_call_inspect
mrb_call_p
mrb_define_class_cmethod
mrb_define_cmethod
Defines a C method (native Rust function) on a Ruby class.
mrb_define_method
Defines a Ruby method (RProc) on a Ruby class.
mrb_define_module_cmethod
Defines a C method (native Rust function) on a Ruby module.
mrb_define_module_method
Defines a Ruby method (RProc) on a Ruby module.
mrb_define_singleton_cmethod
Defines a singleton C method (native Rust function) on a specific Ruby object.
mrb_define_singleton_method
Defines a singleton Ruby method (RProc) on a specific Ruby object.
mrb_funcall
Calls a method on an object by name with the given arguments.