>> a = 5 => 5 >> b = a => 5 >> b = 4 => 4 >> a => 5
how can I set \'b\' to actually be \'a\' so that in the exa
You can use arrays:
a = [5] b = a b[0] = 4 puts a[0] #=> 4
This idea is based on this answer.