From: Love U Ruby Date: 2013-02-24T19:42:10+09:00 Subject: Re: Confusion with `nil` value being produced by IRB in case of Array#size manipulation. unknown wrote in post #1098725 > No sir. :) this is not my answer. Please wait hope someone would catch my point and would answer to my specific question. > Element Assignment---Sets the element at index, or replaces a > subarray starting at start and continuing for length > elements, or replaces a subarray specified by range. > *If indices are greater than the current capacity of the array, the > array grows automatically.* > > [...] > > a = Array.new > a[4] = "4"; #=> [nil, nil, nil, nil, "4"] -- Posted via http://www.ruby-forum.com/.