0
[Ruby] Is there a way to check if there is a space in a string?
3 ответов
+ 4
Or you know check if the substring has a space with `include?` method
gets.include?(" ")
+ 3
https://code.sololearn.com/cfnDZ2RxV6Qa/?ref=app
traversing on the string and check every character
0
thanks a lot!