how to convert a string to array ruby code example Example: ruby string to array "a b c d".split(" ")