summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-05 17:40:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-05 17:40:29 +0000
commite1949185d324cee0a261f020326a058e26c4eec3 (patch)
tree54130757b47b29e3147bcc586ff02e441ffa7409 /struct.c
parent27ff93a4eea5d1e681d4f9af323b3581599eb6ea (diff)
* struct.c (make_struct): needs meta class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/struct.c b/struct.c
index 5081174..121cd85 100644
--- a/struct.c
+++ b/struct.c
@@ -156,6 +156,7 @@ make_struct(name, member, klass)
if (NIL_P(name)) {
nstr = rb_class_new(klass);
+ rb_make_metaclass(nstr, RBASIC(klass)->klass);
rb_class_inherited(klass, nstr);
}
else {