Wednesday, January 5, 2011

Going crazy with to_proc - A nice post by Iain Hecker

In my project, I was trying to pass an argument to my object's method being called as &:symbol_name in the collect method of an Array.

I googled to find whether any one has faced this before and I found a very nice post by Iain Hecker - http://iain.nl/2010/02/going-crazy-with-to_proc/

With his implementation, I was able to solve my problem. Thanks Iain !

No comments:

Post a Comment