aboutsummaryrefslogtreecommitdiffstats
path: root/class.c
diff options
context:
space:
mode:
Diffstat (limited to 'class.c')
-rw-r--r--class.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/class.c b/class.c
index 37ad4b542b..2409e0d68b 100644
--- a/class.c
+++ b/class.c
@@ -1985,6 +1985,13 @@ rb_get_kwargs(VALUE keyword_hash, const ID *table, int required, int optional, V
#undef extract_kwarg
}
+int
+rb_class_has_methods(VALUE c)
+{
+ st_table *mtbl = RCLASS_M_TBL(c);
+ return mtbl && mtbl->num_entries ? TRUE : FALSE;
+}
+
/*!
* \}
*/