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