Use Array.new with a block instead of .times.collect / .times.map.
.times.collect
.times.map
See #17478 (closed)