Ruby 3.4.5p51 (2025-07-16 revision 20cda200d3ce092571d0b5d342dadca69636cb0f)
|
Defines struct RBasic. More...
#include "ruby/internal/attr/artificial.h"
#include "ruby/internal/attr/constexpr.h"
#include "ruby/internal/attr/forceinline.h"
#include "ruby/internal/attr/noalias.h"
#include "ruby/internal/attr/pure.h"
#include "ruby/internal/cast.h"
#include "ruby/internal/dllexport.h"
#include "ruby/internal/special_consts.h"
#include "ruby/internal/value.h"
#include "ruby/assert.h"
Go to the source code of this file.
Data Structures | |
struct | RBasic |
Ruby object's base components. More... |
Macros | |
#define | RBASIC(obj) |
Convenient casting macro. |
Enumerations | |
enum | ruby_rvalue_flags { RVALUE_EMBED_LEN_MAX = RBIMPL_RVALUE_EMBED_LEN_MAX } |
This is an enum because GDB wants it (rather than a macro). More... |
Functions | |
VALUE | rb_obj_hide (VALUE obj) |
Make the object invisible from Ruby code. | |
VALUE | rb_obj_reveal (VALUE obj, VALUE klass) |
Make a hidden object visible again. | |
static VALUE | RBASIC_CLASS (VALUE obj) |
Queries the class of an object. |
Defines struct RBasic.
Definition in file rbasic.h.
#define RBASIC | ( | obj | ) |
Convenient casting macro.
obj | Arbitrary Ruby object. |
Definition at line 40 of file rbasic.h.
Referenced by RARRAY_EMBED_LEN(), RB_BUILTIN_TYPE(), rb_cvar_set(), RB_FL_REVERSE_RAW(), RB_FL_SET_RAW(), RB_FL_TEST_RAW(), RB_FL_UNSET_RAW(), rb_hash_dup(), rb_mod_init_copy(), rb_obj_setup(), rb_profile_frame_classpath(), rb_reg_options(), rb_str_drop_bytes(), and RBASIC_CLASS().
enum ruby_rvalue_flags |
Queries the class of an object.
[in] | obj | An object. |
Definition at line 150 of file rbasic.h.
Referenced by rb_class_of(), rb_extract_keywords(), rb_freeze_singleton_class(), rb_obj_freeze_inline(), and RBASIC_CLASS().