Answers for "split string word into an array 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 "split string word into an array ruby"

Browse Popular Code Answers by Language