Skip to content

Instantly share code, notes, and snippets.

@danitrap
Created December 12, 2013 20:52
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 danitrap/7935239 to your computer and use it in GitHub Desktop.
Save danitrap/7935239 to your computer and use it in GitHub Desktop.
Ruby: make instance methods private
private *instance_methods.select { |m| m !~ /(^__|^\W|^binding$)/ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment