ary.fill(obj) â aryary.fill(obj, start [, length]) â aryary.fill(obj, range ) â aryary.fill { |index| block } â aryary.fill(start [, length] ) { |index| block } â aryary.fill(range) { |index| block } â ary
Instance Public methods
The first three forms set the selected elements of self (which
may be the entire array) to obj.
A start of nil is equivalent to zero.
A length of nil is e