Mega Code Archive
Categories
/
Ruby
/
Array
Iterating Over an Array with each
[1, 2, 3, 4].each { |x| puts x } # 1 # 2 # 3 # 4