From: Stuart Little Date: 2009-02-12T06:58:01+09:00 Subject: Re: Array uniq Forgive me. What does that line do? The output is listed earlier in the thread. Many thanks Pit Capitain wrote: > 2009/2/11 Stuart Little : >> time = event.time_written.to_s >> dateCheck = [time.gsub(/\s/, '')[0..7] + time[26..29]] >> printdata = [dateCheck] >> @alerts.push printdata.uniq > > Stuart, in this code you have an array with exactly one element, so > #uniq returns the original array. Can you add the line "p printdata" > and show us the output? > > Regards, > Pit -- Posted via http://www.ruby-forum.com/.