I am having difficulty dynamically displaying the contents of variables. For example:
minha_var_1 = %{Um texto}
minha_var_2 = %{Outro texto}
minha_var_3 = %{Mais outro texto}
But, I tried to display both with:
for i in(0..2)
puts minha_var_"#{i}"
end
How to:
for i in(0..2)
puts "minha_var_#{i}"
end
Unsuccessful.
What would be the right way to display this content dynamically?