rb_define_alias

Function rb_define_alias 

Source
pub unsafe extern "C" fn rb_define_alias(
    klass: VALUE,
    dst: *const c_char,
    src: *const c_char,
)
Expand description

Defines an alias of a method.

@param[in,out] klass The class which the original method belongs to; this is also where the new method will belong to. @param[in] dst A new name for the method. @param[in] src The original name of the method. @exception rb_eTypeError klass is a non-module. @exception rb_eFrozenError klass is frozen. @exception rb_eNameError There is no such method named as src in klass.

@internal

ยงAbove description is in fact a bit inaccurate because it ignores Refinements.

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