Skip to content

mrb_method_search

cremno edited this page Sep 11, 2013 · 2 revisions

mrb_method_search

Declaration Definition
class.h class.c
struct RProc *mrb_method_search(mrb_state *mrb, struct RClass *klass, mrb_sym name);

Searches for name in the method tables of *klass and its superclasses. A NameError is raised if the method cannot be found.

Parameters

  • mrb: mruby VM state
  • klass: class to search
  • name: name of the method

Return value

Proc of the method.

See also

Clone this wiki locally