mrb_alias_method - cremno/mruby GitHub Wiki
mrb_alias_method
| Declaration | Definition |
|---|---|
| class.h | class.c |
void mrb_alias_method(mrb_state *mrb, struct RClass *klass, mrb_sym new_name, mrb_sym old_name);
Defines a method called new_name which is a copy of old_name.
Parameters
- mrb: mruby VM state
- klass: class of the method
- new_name: name of the new method
- old_name: name of the original method
Return value
None.