summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-05 23:15:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-05 23:15:51 +0000
commite86d1ce77e43df78decae079eef94fc9099cd9f1 (patch)
treeaf3012ea94b125585542723ac70e12cfcce2bb59 /enum.c
parent2db86440394caa983103ddab5233778684bb5731 (diff)
* enum.c (enum_join): added rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c8
1 files changed, 8 insertions, 0 deletions
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
+ * <i>enum</i> to a string, separated by <i>sep</i>.
+ */
+
static VALUE
enum_join(int argc, VALUE *argv, VALUE obj)
{