Mega Code Archive

 
Categories / Ruby / Array
 

With arrays, is the operator for pushing an item onto the end of an array

# You can also use the push method, which is equivalent. x = [] x << "Word" puts x x.push "Word" puts x