Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: