|
Ruby 4.0.0dev (2025-11-28 revision dcb9e17f467683b32f429736cf7598b1ce89cdc5)
|
Ruby's ordinal objects. More...
#include <robject.h>
Data Fields | ||
| struct RBasic | basic | |
| Basic part, including flags and class. | ||
| union { | ||
| struct { | ||
| VALUE * fields | ||
| Pointer to a C array that holds instance variables. More... | ||
| } heap | ||
| Object that use separated memory region for instance variables use this pattern. More... | ||
| VALUE ary [1] | ||
| } | as | |
| Object's specific fields. | ||
Ruby's ordinal objects.
Unless otherwise special cased, all predefined and user-defined classes share this struct to hold their instances.
| union { ... } RObject::as |
Object's specific fields.
| struct RBasic RObject::basic |
| VALUE* RObject::fields |
| struct { ... } RObject::heap |
Object that use separated memory region for instance variables use this pattern.