Mega Code Archive

 
Categories / Ruby / Method
 

Print all the elements in an array using the each method followed by a block

[ "Hello, ", "Matz!"].each { |e| print e }