User Program Communication
Functions and Blocks
Object Oriented Programming
Searching for: Global Variables in Ruby
Class and Instance Variables
Used declare variables within a class. There are two main types: class variables, which have the same value across all class instances (i.e. static variables), and instance variables, which have different values for each object instance.