summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
Diffstat (limited to 'class.c')
-rw-r--r--class.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/class.c b/class.c
index 50f61655e61..9679fedace1 100644
--- a/class.c
+++ b/class.c
@@ -214,8 +214,8 @@ rb_define_class(name, super)
rb_warn("no super class for `%s', Object assumed", name);
}
klass = rb_define_class_id(id, super);
- rb_class_inherited(super, klass);
st_add_direct(rb_class_tbl, id, klass);
+ rb_class_inherited(super, klass);
return klass;
}
@@ -246,8 +246,8 @@ rb_define_class_under(outer, name, super)
}
klass = rb_define_class_id(id, super);
rb_set_class_path(klass, outer, name);
- rb_class_inherited(super, klass);
rb_const_set(outer, id, klass);
+ rb_class_inherited(super, klass);
return klass;
}