5 ms·
I thought `Symbol#to_proc` is a Rails' extension.
by d0mine 18y ago
I thought `Symbol#to_proc` is a Rails' extension.
- lsb 18y agoI learned about it in 2005, when I read it on http://pragdave.pragprog.com/pragdave/2005/11/symbolto_proc.html http://pragdave.pragprog.com/pragdave/2005/11/symbolto_proc.... and it's such a good idea that they've folded it into 1.9 http://www.infoq.com/news/2008/02/to_proc-currying-ruby19 http://www.infoq.com/news/2008/02/to_proc-currying-ruby19