I have a string
\"1,2,3,4\"
and I\'d like to convert it into an array:
[1,2,3,4]
How?
"1,2,3,4".split(",") as strings
"1,2,3,4".split(",")
"1,2,3,4".split(",").map { |s| s.to_i } as integers
"1,2,3,4".split(",").map { |s| s.to_i }