Answers for "how to split words into array of letters in ruby"

0

how to split string into characters ruby

string = "hey there"
string.chars #=> ["h", "e", "y", " ", "t", "h", "e", "r", "e"]
#OR
string.split("")
Posted by: Guest on September-18-2020

Code answers related to "how to split words into array of letters in ruby"

Browse Popular Code Answers by Language