+ 1
What is the shortest way to convert this string to an array in Ruby? Thank you.
a = "\"[1, 2, 3]\"" #Expected output: # a =[1,2,3]
2 Answers
+ 1
Thank you Gordie. Seems that I failed to find a better way from your code :).
a = "\"[1, 2, 3]\"" #Expected output: # a =[1,2,3]