Created
December 12, 2013 20:52
-
-
Save danitrap/7935239 to your computer and use it in GitHub Desktop.
Ruby: make instance methods private
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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