Skip navigation

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!

Advertisements

One Comment

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


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: