Robert Klemme
5/16/2008 2:09:00 PM
2008/5/16 Sijo Kg <sijo@maxxion.com>:
> I have a doubt regrding .collect That is why I asked tht.Is there any
> such a method?
Yes, there is. But your usage of collect does not make any sense:
xxx.collect! {|n| n}
Using #collect or #map with this block is basically a noop because
elements will be replaced by themselves.
Kind regards
robert
--
use.inject do |as, often| as.you_can - without end