-variable in ruby means code example
Example 1: variables in ruby
var_name = "value"
Example 2: What does @variable stand for in Ruby
@variable - is an "instance" variable.
It can be accessed with any method inside the class.
var_name = "value"
@variable - is an "instance" variable.
It can be accessed with any method inside the class.