On Jul 10, 2008, at 3:11 PM, Oliver Saunders wrote:

> I see this a lot but it doesn't work for me in IRB. Is a gem  
> required or
> something?
>
>>> [1,2,3].map(&:to_s)
> TypeError: wrong argument type Symbol (expected Proc)
>        from (irb):2


it's rails - basically


class Symbol
   def to_proc
     sym = self
     lambda{|obj| obj.send sym}
   end
end

a @ http://codeforpeople.com/
--
we can deny everything, except that we have the possibility of being  
better. simply reflect on that.
h.h. the 14th dalai lama