Skip to content

Instantly share code, notes, and snippets.

@lxneng
Created February 20, 2011 14:10
Show Gist options
  • Save lxneng/835985 to your computer and use it in GitHub Desktop.
Save lxneng/835985 to your computer and use it in GitHub Desktop.
# Grep an object’s available methods
# http://rubyquicktips.tumblr.com/post/3360442904/grep-an-objects-available-methods
Object.methods.grep /inspect/
=> ["inspect", "pretty_inspect", "pretty_print_inspect"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment