Method: List#join

Defined in:
ext/list/list.c

#join(*args) ⇒ Object



1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
# File 'ext/list/list.c', line 1361

static VALUE
list_join_m(int argc, VALUE *argv, VALUE self)
{
	VALUE sep;

	rb_scan_args(argc, argv, "01", &sep);
	if (NIL_P(sep)) sep = rb_output_fs;

	return list_join(self, sep);
}