Skip to content

Instantly share code, notes, and snippets.

@srt32
Created March 14, 2019 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srt32/147c91c38d9a9ffdaed53b6af0bfea60 to your computer and use it in GitHub Desktop.
Save srt32/147c91c38d9a9ffdaed53b6af0bfea60 to your computer and use it in GitHub Desktop.
Figure out which methods a Ruby object has

One of my favorite Ruby tricks:

> "foo".methods.sort - Object.methods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment