Ruby 4.1.0dev (2026-08-16 revision 8b81626c346a7398477d850155cd624066af2f76)
Data Fields
RObject Struct Reference

Ruby's ordinal objects. More...

#include <robject.h>

Data Fields

struct RBasic basic
 Basic part, including flags and class.
 
union { 
 
   VALUE   ary [1] 
 
   VALUE   extended 
 When an object slot is too small or too complex to store instance variables inline, it references another, larger, object that contains the instance variables. More...
 
as 
 Object's specific fields.
 

Detailed Description

Ruby's ordinal objects.

Unless otherwise special cased, all predefined and user-defined classes share this struct to hold their instances.

Definition at line 56 of file robject.h.

Field Documentation

◆ ary

VALUE RObject::ary[1]

Definition at line 71 of file robject.h.

◆ [union]

union { ... } RObject::as

Object's specific fields.

◆ basic

struct RBasic RObject::basic

Basic part, including flags and class.

Definition at line 59 of file robject.h.

◆ extended

VALUE RObject::extended

When an object slot is too small or too complex to store instance variables inline, it references another, larger, object that contains the instance variables.

Definition at line 78 of file robject.h.


The documentation for this struct was generated from the following file: