Question : ruby String split second parameter
Answered by : barisx
"1 2 3 4 5 6 7 8".split(' ', 3)
# => ["1", "2", "3 4 5 6 7 8"]
Source : https://selleo.com/til | Last Update : Mon, 27 Jun 22
Answered by : barisx
"1 2 3 4 5 6 7 8".split(' ', 3)
# => ["1", "2", "3 4 5 6 7 8"]
Source : https://selleo.com/til | Last Update : Mon, 27 Jun 22