Skip to content

mrb_alias_method

cremno edited this page Sep 11, 2013 · 2 revisions

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.

See also

Clone this wiki locally