I’m trying to figure out how to turn a string into an object. Can
anyone point me? Here’s some background.
Here’s the part of what I’m trying to do that works.
What I can’t figure out how to do is something like this…
make = ‘@chevy’
assign(make) = [‘camaro’, ‘vette’]
–> What I need this to produce is
Which of course it doesn’t
I’m still pretty new to Ruby and, while I’m sure there’s got to be an
inverse to eval(), the hours I’ve spent in the Pickaxe book on this
haven’t clicked for me.
Any assistance is greatly appreciated!!!