Function rb_define_protected_method

Source
pub unsafe extern "C" fn rb_define_protected_method(
    klass: VALUE,
    mid: *const c_char,
    func: Option<unsafe extern "C" fn() -> VALUE>,
    arity: c_int,
)
Expand description

Identical to rb_define_method, except it defines a protected method.

ยง@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_protected_method

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