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:
parent
6c033e5f16
commit
f31c91fd29
1 changed files with 2 additions and 5 deletions
5
eval.c
5
eval.c
|
@ -2292,11 +2292,8 @@ 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);
|
||||
}
|
||||
|
||||
result = module_setup(class, node->nd_body);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue