|
Ruby 3.3.5p100 (2024-09-03 revision ef084cc8f4958c1b6e4ead99136631bef6d8ddba)
|
Ruby's ordinal objects. More...
#include <robject.h>
Data Fields | ||
| struct RBasic | basic | |
| Basic part, including flags and class. | ||
| union { | ||
| struct { | ||
| VALUE * ivptr | ||
| Pointer to a C array that holds instance variables. More... | ||
| struct rb_id_table * iv_index_tbl | ||
| This is a table that holds instance variable name to index mapping. 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 |
| struct { ... } RObject::heap |
Object that use separated memory region for instance variables use this pattern.
| struct rb_id_table* RObject::iv_index_tbl |
| VALUE* RObject::ivptr |