rails/rails — pull request #6979 by lexmag (2012-07-05 20:59:41+00:00)
Title: Add array named setters

For instance:

a = [*1..5]
a.third = 0 # Now `a` equal [1, 2, 0, 4, 5]