summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hash.c b/hash.c
index dc29683..0cbc46b 100644
--- a/hash.c
+++ b/hash.c
@@ -41,6 +41,7 @@ has_extra_methods(VALUE klass)
while (c != base) {
st_table *mtbl = RCLASS_M_TBL(c);
if (mtbl && mtbl->num_entries) return klass;
+ c = RCLASS_SUPER(c);
}
return 0;
}