Skip to content

Instantly share code, notes, and snippets.

@padde
Created November 28, 2011 11:32
Show Gist options
  • Save padde/1400075 to your computer and use it in GitHub Desktop.
Save padde/1400075 to your computer and use it in GitHub Desktop.
Show interesting methods of an object in Ruby
# please only interesting methods!
class Object
# return only the methods not present on basic objects
def interesting_methods
(self.methods - Object.new.methods).sort
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment