Really. How hard can it be? Do you really have to prove that your metaprogramming skills are better than mine on the first five lines of your code? Like this:
How is this more readable, or in any way better than the long version?:
Sorry, but I don’t get it. Plus, the original construct, for some reason, fails for me inside my rails app, which I’ll now have to investigate. Good times!