Last active
January 21, 2016 09:12
-
-
Save the-undefined/8c707337c05e69bbdeeb to your computer and use it in GitHub Desktop.
Initialize is a private method, so.... put it under private
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
$ irb | |
001:0> Class.new.initialize | |
NoMethodError: private method `initialize' called for #<Class:0x007fc9188e3f08> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment