Created
April 23, 2012 01:55
-
-
Save mauricio/2468199 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| class SomeClass | |
| def good_call | |
| my_private_method | |
| end | |
| def bad_call | |
| self.my_private_method | |
| end | |
| private | |
| def my_private_method | |
| puts "weeee! private method!" | |
| end | |
| end | |
| object = SomeClass.new | |
| object.good_call | |
| object.bad_call |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment