summaryrefslogtreecommitdiffstats
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
commit5355a86c64521c7fe1517d3c61d725a6ac44e9f6 (patch)
tree54130757b47b29e3147bcc586ff02e441ffa7409 /struct.c
parent25e6363e0e7f0ae3e8a6ed91c9733aad39ed98ed (diff)
downloadruby-5355a86c64521c7fe1517d3c61d725a6ac44e9f6.tar.gz
ruby-5355a86c64521c7fe1517d3c61d725a6ac44e9f6.tar.xz
ruby-5355a86c64521c7fe1517d3c61d725a6ac44e9f6.zip
* struct.c (make_struct): needs meta class.
git-svn-id: http://svn.ruby-lang.org/repos/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 5081174ce..121cd85d9 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 {