mrb_method_search_vm - cremno/mruby GitHub Wiki
mrb_method_search_vm
| Declaration | Definition |
|---|---|
| class.h | class.c |
struct RProc *mrb_method_search_vm(mrb_state *mrb, struct RClass **klass, mrb_sym name);
Searches for name in the method tables of *klass and its superclasses.
Parameters
- mrb: mruby VM state
- klass: class to search
- name: name of the method
Return value
Proc of the method or NULL if it was not found.