T
Thomas Luedeke
I apologize in advance, because I know this gets asked again and again
(and again.....) by newbies, but my searches don't show a clear answer,
and none of my attempts work.
This should be simple. I want to define a constant,
a = 3
then reference the value of a in arguments like,
temp_array = Array.new(a)
such that the temp_array is assigned a size of 3.
This always seems to result in complaints about undefined local variable
or methods. Eval doesn't seem to make it work.
What I am doing wrong??
(and again.....) by newbies, but my searches don't show a clear answer,
and none of my attempts work.
This should be simple. I want to define a constant,
a = 3
then reference the value of a in arguments like,
temp_array = Array.new(a)
such that the temp_array is assigned a size of 3.
This always seems to result in complaints about undefined local variable
or methods. Eval doesn't seem to make it work.
What I am doing wrong??