summaryrefslogtreecommitdiffstats
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
commit88b0c8c8bc85d785289e1d4e3dd3147d416ab6d7 (patch)
treeaf3012ea94b125585542723ac70e12cfcce2bb59 /enum.c
parentc3987956760d43c4f4a938d9a034b5ca757bcd57 (diff)
downloadruby-88b0c8c8bc85d785289e1d4e3dd3147d416ab6d7.tar.gz
ruby-88b0c8c8bc85d785289e1d4e3dd3147d416ab6d7.tar.xz
ruby-88b0c8c8bc85d785289e1d4e3dd3147d416ab6d7.zip
* enum.c (enum_join): added rdoc.
git-svn-id: http://svn.ruby-lang.org/repos/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 dd2ed9244..cc0883942 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)
{