From: MoonWolf Date: 2002-07-13T21:05:30+09:00 Subject: Re: hey! where's #count? > i went to count the number of equal objects in an array and discoverd > there was no #count. that was odd, i thought, there's one for string. > but then it occured to me, #count would be in Enumberable. but no. it is > not. hey! why not? use Enumerable#select obj.select {|item| item==str}.size or count=0 obj.each {|item| count += 1 if item==str} count -- MoonWolf