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