配列のループ、繰り返し

puts "---配列要素を1つずつ操作"
a.each{|i|
    print i, ", "
}
p a

ネタ元