rb_define_method_id

Function rb_define_method_id 

Source
pub unsafe extern "C" fn rb_define_method_id(
    klass: VALUE,
    mid: ID,
    func: Option<unsafe extern "C" fn() -> VALUE>,
    arity: c_int,
)
Expand description

Identical to rb_define_method, except it takes the name of the method in ::ID instead of C’s string.

§@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_method_id

Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3