Skip to content

Instantly share code, notes, and snippets.

@execat
execat / Ruby_Naming_Conventions.md
Last active September 25, 2018 20:42 — forked from alexpchin/Ruby_Rails_Naming_Conventions.md
Ruby & Rails Naming Conventions

The Ruby Naming Conventions

As Jon would say, ProTip:

Ruby uses the first character of the name to help it determine it’s intended use.

Local Variables
These should be a lowercase letter followed by other characters, naming convention states that it is better to use underscores rather than camelBack for multiple word names eg. mileage, variable_xyz

Instance Variables