Header: mruby/class.h

Overview

Class class

Function Summary collapse

Define Summary

#define MRUBY_CLASS_H
#define mrb_class_ptr
#define MRB_FL_CLASS_IS_PREPENDED

flags: 20: frozen 19: is_prepended 18: is_origin 17: is_inherited (used by method cache) 16: unused 0-15: instance type

#define MRB_FL_CLASS_IS_ORIGIN
#define MRB_CLASS_ORIGIN
#define MRB_FL_CLASS_IS_INHERITED
#define MRB_INSTANCE_TT_MASK
#define MRB_SET_INSTANCE_TT
#define MRB_INSTANCE_TT

Function Details

struct RClass* mrb_class(mrb_state * mrb, mrb_value v)

struct RClass* mrb_define_class_id(mrb_state* , mrb_sym , struct RClass* )

struct RClass* mrb_define_module_id(mrb_state* , mrb_sym )

void mrb_define_method_raw(mrb_state* , struct RClass* , mrb_sym , mrb_method_t )

void mrb_define_method_id(mrb_state * mrb, struct RClass * c, mrb_sym mid, mrb_func_t func, mrb_aspec aspec)

void mrb_alias_method(mrb_state* , struct RClass * c, mrb_sym a, mrb_sym b)

mrb_method_t mrb_method_search_vm(mrb_state* , struct RClass* , mrb_sym )

mrb_method_t mrb_method_search(mrb_state* , struct RClass* , mrb_sym )

struct RClass* mrb_class_real(struct RClass* cl)