diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-12-10 18:21:31 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-12-10 18:21:31 +0000 |
| commit | 2adf4008deab55a039d73c0cc667a53bdd94c728 (patch) | |
| tree | 60e482cb4d15a3fb902073227052d65e21b85f02 /object.c | |
| parent | 8afebf0e8806fec455a3b623cf719828da0296ad (diff) | |
| download | ruby-2adf4008deab55a039d73c0cc667a53bdd94c728.tar.gz ruby-2adf4008deab55a039d73c0cc667a53bdd94c728.tar.xz ruby-2adf4008deab55a039d73c0cc667a53bdd94c728.zip | |
* object.c (rb_class_real): follow included modules.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
| -rw-r--r-- | object.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } |
