1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

singleton class

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@48 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 1998-01-23 04:38:31 +00:00
parent 6c033e5f16
commit f31c91fd29

7
eval.c
View file

@ -2292,12 +2292,9 @@ rb_eval(self, node)
}
if (FL_TEST(CLASS_OF(class), FL_SINGLETON)) {
rb_clear_cache();
class = rb_singleton_class(class);
}
else {
class = CLASS_OF(class);
}
class = rb_singleton_class(class);
result = module_setup(class, node->nd_body);
}
break;