mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
* intern.h, object.c, variable.c (rb_mod_constants): added an optional
flag to search ancestors, which is defaulted to true, as well as const_defined? and const_get. [ruby-dev:29989] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8d69c7f116
commit
f4aca06c84
5 changed files with 40 additions and 10 deletions
3
intern.h
3
intern.h
|
@ -562,7 +562,7 @@ VALUE rb_obj_remove_instance_variable(VALUE, VALUE);
|
|||
void *rb_mod_const_at(VALUE, void*);
|
||||
void *rb_mod_const_of(VALUE, void*);
|
||||
VALUE rb_const_list(void*);
|
||||
VALUE rb_mod_constants(VALUE);
|
||||
VALUE rb_mod_constants(int, VALUE *, VALUE);
|
||||
VALUE rb_mod_remove_const(VALUE, VALUE);
|
||||
int rb_const_defined(VALUE, ID);
|
||||
int rb_const_defined_at(VALUE, ID);
|
||||
|
@ -573,7 +573,6 @@ VALUE rb_const_get_at(VALUE, ID);
|
|||
VALUE rb_const_get_from(VALUE, ID);
|
||||
VALUE rb_const_get_fallback(VALUE, ID, struct RNode *);
|
||||
void rb_const_set(VALUE, ID, VALUE);
|
||||
VALUE rb_mod_constants(VALUE);
|
||||
VALUE rb_mod_const_missing(VALUE,VALUE);
|
||||
VALUE rb_cvar_defined(VALUE, ID);
|
||||
#define RB_CVAR_SET_4ARGS 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue