Created
December 26, 2013 20:32
-
-
Save beezeebly/8138337 to your computer and use it in GitHub Desktop.
Naming conventions for Ruby
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 FictionBook # camel case for class names | |
| #... | |
| end | |
| def days_since_launch # snakes everywhere else | |
| #... | |
| end | |
| STANDARD_PRICE = 10 # uppercase camel case for constants |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment