2 ms·
For those who think the above is pretty tame and have been using it for years, we've got a series on our blog where we introduce and discuss a new method every
by mdemare 19y ago
For those who think the above is pretty tame and have been using it for years, we've got a series on our blog where we introduce and discuss a new method every day.
http://blog.rubyenrails.nl/articles/category/daily_method http://blog.rubyenrails.nl/articles/category/daily_method
Here we create a to_proc method for Hash:
http://blog.rubyenrails.nl/articles/2008/02/26/a-hash-is-a-function-hash-to_proc http://blog.rubyenrails.nl/articles/2008/02/26/a-hash-is-a-f...
- raganwald 19y agoI subscribe to the series and enjoy it. I hadn't seen Hash#to_proc, I look forward to considering the possibilities carefully...