Global Variables : Global Variables « Language Basics « Ruby
- Ruby
- Language Basics
- Global Variables
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"
Related examples in the same category