mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
rb_const_set sets the class path now
This commit is contained in:
parent
6944b927bd
commit
9ee99fbd8a
1 changed files with 0 additions and 1 deletions
1
random.c
1
random.c
|
@ -1688,7 +1688,6 @@ InitVM_Random(void)
|
||||||
rb_undef_alloc_func(base);
|
rb_undef_alloc_func(base);
|
||||||
rb_cRandom = rb_define_class("Random", base);
|
rb_cRandom = rb_define_class("Random", base);
|
||||||
rb_const_set(rb_cRandom, id_base, base);
|
rb_const_set(rb_cRandom, id_base, base);
|
||||||
rb_set_class_path(base, rb_cRandom, "Base");
|
|
||||||
rb_define_alloc_func(rb_cRandom, random_alloc);
|
rb_define_alloc_func(rb_cRandom, random_alloc);
|
||||||
rb_define_method(base, "initialize", random_init, -1);
|
rb_define_method(base, "initialize", random_init, -1);
|
||||||
rb_define_method(base, "rand", random_rand, -1);
|
rb_define_method(base, "rand", random_rand, -1);
|
||||||
|
|
Loading…
Reference in a new issue