pub unsafe extern "C" fn rb_define_module_function(
klass: VALUE,
mid: *const c_char,
func: Option<unsafe extern "C" fn() -> VALUE>,
arity: c_int,
)Expand description
Defines a module function for a module.
ยง@param[out] klass A module or a class.
@param[in] mid Name of the function.
@param[in] func The method body.
@param[in] arity The number of parameters. See @ref defmethod.
@note There are in fact 18 different prototypes for func.
@see ::ruby::backward::cxxanyargs::define_method::rb_define_module_function
Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3