rb_define_singleton_method

Function rb_define_singleton_method 

Source
pub unsafe extern "C" fn rb_define_singleton_method(
    obj: 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 singleton method.

ยง@param[out] obj Arbitrary ruby object. @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_singleton_method

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