Ruby 4.1.0dev (2026-10-04 revision 76aa225e9af575a320135123891fe5b5919411a1)
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 54 of file robject.h.

Field Documentation

◆ ary

VALUE RObject::ary[1]

Definition at line 69 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 57 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 76 of file robject.h.


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