10. Saving multiple values


#1

I am having problems setting my_array equal to 1..5. I have it set up its just not working.

my_array = 1..5


#2

The following will be obsolete in future, but it works for this site...

my_array = (1..5).to_a     # [1, 2, 3, 4, 5]

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.