diff options
Diffstat (limited to 'class.c')
-rw-r--r-- | class.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -626,7 +626,7 @@ boot_defclass(const char *name, VALUE super) ID id = rb_intern(name); rb_const_set((rb_cObject ? rb_cObject : obj), id, obj); - rb_vm_add_root_module(id, obj); + rb_vm_add_root_module(obj); return obj; } @@ -748,14 +748,14 @@ rb_define_class(const char *name, VALUE super) } /* Class may have been defined in Ruby and not pin-rooted */ - rb_vm_add_root_module(id, klass); + rb_vm_add_root_module(klass); return klass; } if (!super) { rb_raise(rb_eArgError, "no super class for `%s'", name); } klass = rb_define_class_id(id, super); - rb_vm_add_root_module(id, klass); + rb_vm_add_root_module(klass); rb_const_set(rb_cObject, id, klass); rb_class_inherited(super, klass); @@ -821,7 +821,7 @@ rb_define_class_id_under(VALUE outer, ID id, VALUE super) outer, rb_id2str(id), RCLASS_SUPER(klass), super); } /* Class may have been defined in Ruby and not pin-rooted */ - rb_vm_add_root_module(id, klass); + rb_vm_add_root_module(klass); return klass; } @@ -833,7 +833,7 @@ rb_define_class_id_under(VALUE outer, ID id, VALUE super) rb_set_class_path_string(klass, outer, rb_id2str(id)); rb_const_set(outer, id, klass); rb_class_inherited(super, klass); - rb_vm_add_root_module(id, klass); + rb_vm_add_root_module(klass); rb_gc_register_mark_object(klass); return klass; @@ -867,11 +867,11 @@ rb_define_module(const char *name) name, rb_obj_class(module)); } /* Module may have been defined in Ruby and not pin-rooted */ - rb_vm_add_root_module(id, module); + rb_vm_add_root_module(module); return module; } module = rb_define_module_id(id); - rb_vm_add_root_module(id, module); + rb_vm_add_root_module(module); rb_gc_register_mark_object(module); rb_const_set(rb_cObject, id, module); |