forked from mruby/mruby
-
Notifications
You must be signed in to change notification settings - Fork 0
mrb_singleton_class
cremno edited this page Sep 11, 2013
·
2 revisions
| Declaration | Definition |
|---|---|
| mruby.h | class.c |
mrb_value mrb_singleton_class(mrb_state *mrb, mrb_value obj);Returns the singleton class if obj has one. Otherwise it will be defined. A TypeError is raised if obj is a Fixnum, Float or Symbol.
- mrb: mruby VM state
- obj: an object
The singleton class.