Hacker News new | ask | show | jobs
by smitherfield 2720 days ago
Cleaner and more idiomatic version: https://news.ycombinator.com/item?id=18873581#18877403
1 comments

IMO monkey-patching built-in classes is idiomatic Ruby!

Edit to add: Actually, now that I think about it, using method_missing would have been even better!

Well of course. I originally linked to this code: https://news.ycombinator.com/item?id=18873581#18878500

But the edit window had passed by the time I changed it.