Ruby Name Convention

Symbol

ruby-symbol is totally a different thing, for more, please read: ruby-symbol

Variables

constant: starts with uppercase letter, better all in uppercase

global-variable: starts with $ (dollar-sign)

local-variable: starts with underscore or lowercase, in a style local_variable_in_style

class: starts with uppercase, in a style CamelCase

instance-variable: starts with single @

class-variable: starts with double @@

method: start with lowercase

module: starts with uppercase, in a style CamelCase

Reserved Words

please refer: ruby-reserved-words