Subject: Map with &:method_name
From: Oliver Saunders <oliver.saunders gmail.com>
Date: Fri, 11 Jul 2008 06:11:21 +0900
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
--
Posted via http://www.ruby-forum.com/.