ruby array example Example 1: ruby create array array = Array.new Example 2: ruby array ary = [1, "two", 3.0] #=> [1, "two", 3.0]