Ruby  2.1.10p492(2016-04-01revision54464)
Data Structures | Typedefs | Enumerations | Functions
constant.h File Reference

Go to the source code of this file.

Data Structures

struct  rb_const_entry_struct
 

Typedefs

typedef struct rb_const_entry_struct rb_const_entry_t
 

Enumerations

enum  rb_const_flag_t { CONST_PUBLIC = 0x00, CONST_PRIVATE = 0x01 }
 

Functions

VALUE rb_mod_private_constant (int argc, VALUE *argv, VALUE obj)
 
VALUE rb_mod_public_constant (int argc, VALUE *argv, VALUE obj)
 
void rb_free_const_table (st_table *tbl)
 
VALUE rb_public_const_get (VALUE klass, ID id)
 
VALUE rb_public_const_get_at (VALUE klass, ID id)
 
VALUE rb_public_const_get_from (VALUE klass, ID id)
 
int rb_public_const_defined (VALUE klass, ID id)
 
int rb_public_const_defined_at (VALUE klass, ID id)
 
int rb_public_const_defined_from (VALUE klass, ID id)
 

Typedef Documentation

◆ rb_const_entry_t

Enumeration Type Documentation

◆ rb_const_flag_t

Enumerator
CONST_PUBLIC 
CONST_PRIVATE 

Definition at line 14 of file constant.h.

Function Documentation

◆ rb_free_const_table()

void rb_free_const_table ( st_table tbl)

Definition at line 1466 of file gc.c.

References free_const_entry_i(), st_foreach(), and st_free_table().

Referenced by init_copy(), obj_free(), and rb_mod_init_copy().

◆ rb_mod_private_constant()

VALUE rb_mod_private_constant ( int  argc,
VALUE argv,
VALUE  obj 
)

Definition at line 2291 of file variable.c.

References argc, argv, CONST_PRIVATE, and set_const_visibility().

Referenced by Init_Object().

◆ rb_mod_public_constant()

VALUE rb_mod_public_constant ( int  argc,
VALUE argv,
VALUE  obj 
)

Definition at line 2305 of file variable.c.

References argc, argv, CONST_PUBLIC, and set_const_visibility().

Referenced by Init_Object().

◆ rb_public_const_defined()

int rb_public_const_defined ( VALUE  klass,
ID  id 
)

Definition at line 2145 of file variable.c.

References FALSE, rb_const_defined_0(), and TRUE.

◆ rb_public_const_defined_at()

int rb_public_const_defined_at ( VALUE  klass,
ID  id 
)

Definition at line 2151 of file variable.c.

References FALSE, rb_const_defined_0(), and TRUE.

◆ rb_public_const_defined_from()

int rb_public_const_defined_from ( VALUE  klass,
ID  id 
)

Definition at line 2139 of file variable.c.

References rb_const_defined_0(), and TRUE.

Referenced by vm_get_ev_const().

◆ rb_public_const_get()

VALUE rb_public_const_get ( VALUE  klass,
ID  id 
)

Definition at line 1898 of file variable.c.

References FALSE, rb_const_get_0(), and TRUE.

◆ rb_public_const_get_at()

VALUE rb_public_const_get_at ( VALUE  klass,
ID  id 
)

Definition at line 1904 of file variable.c.

References FALSE, rb_const_get_0(), and TRUE.

◆ rb_public_const_get_from()

VALUE rb_public_const_get_from ( VALUE  klass,
ID  id 
)

Definition at line 1892 of file variable.c.

References rb_const_get_0(), and TRUE.

Referenced by vm_get_ev_const().