diff --git a/enum.c b/enum.c index dd2ed9244c..cc08839427 100644 --- a/enum.c +++ b/enum.c @@ -1803,6 +1803,14 @@ enum_cycle(int argc, VALUE *argv, VALUE obj) return Qnil; /* not reached */ } +/* + * call-seq: + * enum.join(sep=$,) -> str + * + * Returns a string created by converting each element of the + * enum to a string, separated by sep. + */ + static VALUE enum_join(int argc, VALUE *argv, VALUE obj) {