From e86d1ce77e43df78decae079eef94fc9099cd9f1 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 5 Jul 2009 23:15:51 +0000 Subject: * enum.c (enum_join): added rdoc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- enum.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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) { -- cgit v1.2.3