I looked up methods to convert strings to arrays and arrays to strings in Ruby, so taking notes.
■ Converting String to Array
To convert a string to an array, use split.
"Ruby on Rails".split(" ")
=> ["Ruby", "on", "Rails"]
■ Converting Array to String
To convert an array to a string, use join.
["Ruby", "on", "Rails"].join(",")
=> "Ruby,on,Rails"
That’s all from the Gemba regarding Ruby string and array conversion.
【References】