Man, I wish I had known about this snippet earlier 1

Posted by Tim Connor Thu, 10 Apr 2008 08:57:00 GMT

as it would have made plenty of tooling around exploring (and even a job interview) easier. It’s much nicer than just sorting the whole mess after you decide it would take less time to find what you want then implement this very functionality.

# List instance methods without ancestor methods
String.instance_methods(false)

From 5 Ways to Sharpen Your Ruby-foo

Comments

Leave a comment

  1. Avatar
    Cody 3 days later:

    Wow, I’m thinking knowing this probably would have saved me at least several hours over the course of the last year.

Comments