Mega Code Archive

 
Categories / Ruby / Array
 

Join method can take an optional parameter thats placed between each element in the resulting string

x = ["Word", "Play", "Fun"] puts x.join(', ')