An array is a Ruby data type that holds an ordered collection of values, which can be any type of object including other arrays. Ruby arrays can be created with either literal notation or the Array.new constructor. Syntax Example Syntax Example Syntax Example Read more You can iterate over the elements in an array using Array.each, which takes a block.