src code

instance method String#toArray

String#toArray() → Array

Splits the string character-by-character and returns an array with the result.

Examples
'a'.toArray();
// -> ['a']
 'hello world!'.toArray();
// -> ['h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd', '!']