Mega Code Archive

 
Categories / Ruby / Array
 

Join all the elements together into one big string by calling the join method on the array

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