I’m trying to better understand how variables are named in Ruby…
here’s what I think I understand. Please correct me where I
#Globals are defined outside a class/method and are
#available everywhere. Must starts with ‘$’
#Class names must start with capitalized letter.
#Starts with '@@' and is available to all methods in the class. @@class_variable #Method name must start with lowercase letter or '_' def method_name #Must start with '@' similar to Python's self notation. #This variable is local to the method. @method_variable end
Where do constants and local variables fit into this?