summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-10 18:21:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-10 18:21:31 +0000
commit8a91c99905c1bfbf441ec890161538acc8e34120 (patch)
tree60e482cb4d15a3fb902073227052d65e21b85f02 /object.c
parent8ef5e308e7ebf5ab1220e80812f6628fd42b3c28 (diff)
* object.c (rb_class_real): follow included modules.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/object.c b/object.c
index 7a4b1e208c..f77d3edc1d 100644
--- a/object.c
+++ b/object.c
@@ -75,6 +75,9 @@ VALUE
rb_class_real(cl)
VALUE cl;
{
+ if (TYPE(cl) == T_ICLASS) {
+ cl = RBASIC(cl)->klass;
+ }
while (FL_TEST(cl, FL_SINGLETON) || TYPE(cl) == T_ICLASS) {
cl = RCLASS(cl)->super;
}