|
Ruby 4.0.5p0 (2026-05-20 revision 64336ffd0ee9e1f4c05891695a3d7b49cb709721)
|
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.