|
Ruby 4.0.6p0 (2026-07-14 revision 03b6d3f8898a28604fe6cb00eae3226b821168f4)
|
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.