From 88b0c8c8bc85d785289e1d4e3dd3147d416ab6d7 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: http://svn.ruby-lang.org/repos/ruby/trunk@23965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- enum.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'enum.c') 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 + * enum to a string, separated by sep. + */ + static VALUE enum_join(int argc, VALUE *argv, VALUE obj) { -- cgit