method

join

v1_9_1_378 - Show latest stable - Class: Array
join(p1 = v1)
public

Returns a string created by converting each element of the array to a string, separated by sep.

[ "a", "b", "c" ].join        #=> "abc"
[ "a", "b", "c" ].join("-")   #=> "a-b-c"