Skip to content

mrb_define_method_vm

cremno edited this page Sep 11, 2013 · 2 revisions

mrb_define_method_vm

Declaration Definition
class.h class.c
void mrb_define_method_vm(mrb_state *mrb, struct RClass *klass, mrb_sym name, mrb_value body);

Defines a method.

Parameters

  • mrb: mruby VM state
  • klass: class of the method
  • name: name of the method
  • body: a proc

Return value

None.

See also

Clone this wiki locally