0 votes
in Ruby by
What are Ruby variables.

1 Answer

0 votes
by

Ruby variables hold data which can be used later in a program. Each variable act as a memory and shas a different name.

There are four types of variables in Ruby:

  • Local variable
  • Class variable
  • Instance variable
  • Global variable
...