Mega Code Archive

 
Categories / Ruby / Language Basics
 

Global Variables

Global variables are available globally to a program.  Their scope is the whole program.  Global Variables are prefixed by a dollar sign ($). $amount = "0.00"