There are a couple of ways to add an element to an array in Ruby. The easiest is the << operator. It works like so:
a = []
a << "One"
a << "Two"
a # puts ["One", "Two"]
The interesting thing is that this method returns the array, which allows you to chain elements; you can write the above code like so:
a = []
a << "One" << "Two" << "Three"
a #puts ["One", "Two", "Three"]
Nice! Just makes life a little easier.