To Documents

Constants and Variables

 

Constants

Ruby has four types of constants: integer, floating point, string, and boolean.

  1. Integer
     
  2. Floating Point
     
  3. String
     
  4. Boolean
     

 

Variables

A variable is a location in a computer that contains data, which might be changed during the execution of a Ruby script. There are three aspects to a variable:
 

 

Variable Declaration

 

The Assignment Operator