From: Valentino Lun Date: 2009-02-19T00:36:01+09:00 Subject: Dummy question about method in class Dear all I have a dummy question. [1,2,3,4,5].inject { |sum,n| sum+n } The inject method in this case is to calculate the sum of array. I searched the RDoc. Why the inject method is belongs to Enumerable Class, but not Array Class? Many thanks Valentino -- Posted via http://www.ruby-forum.com/.