Everyday, I find yet a bit more to love about Ruby

Hmmm, surely there's a method to update bla bla…

>> some_object.methods.grep /update/
=> ["update_attributes", "after_update", ...]

Sweet!

One Comment

  1. Yes, that is a neat trick. Ah, the beauty of dynamic programming languages…

Post a Comment

*
*