0

[Ruby] Is there a way to check if there is a space in a string?

29th Aug 2019, 10:53 PM
takeru
takeru - avatar
3 odpowiedzi
+ 4
Or you know check if the substring has a space with `include?` method gets.include?(" ")
30th Aug 2019, 3:50 AM
Lord Krishna
Lord Krishna - avatar
+ 3
https://code.sololearn.com/cfnDZ2RxV6Qa/?ref=app traversing on the string and check every character
30th Aug 2019, 3:46 AM
ABADA S
ABADA S - avatar
0
thanks a lot!
30th Aug 2019, 5:23 AM
takeru
takeru - avatar