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 !
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment