An Array that automatically expands dimensions as needed.
a = Autoarray.new a[1][2][3] = 12 a #=> [nil, [nil, nil, [nil, nil, nil, 12]]] a[2][3][4] #=> [] a #=> [nil, [nil, nil, [nil, nil, nil, 12]]] a[1][-2][1] = "Negative" a #=> [nil, [nil, [nil, "Negative"], [nil, nil, nil, 12]]]
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.