Displaying 1 result from an estimated 1 matches for "this_make".
2006 Jul 04
7
inverse of eval() ?
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.
-------------------------------------
@ford = [''mustang'', ''pinto'']
make = ''@ford''
puts eval(make)
--> produces
mustang
pinto