+ 4

I don't understand "gets.chomp" What chomp do in Ruby?

17th Jun 2017, 7:29 AM
Valerie Gane
Valerie Gane - avatar
4 ответов
+ 2
For instance run this code after removing .chomp from gets https://code.sololearn.com/cT2JZOX99w59/?ref=app
17th Jun 2017, 7:37 AM
Siddharth Saraf
+ 18
(Removes unecessary whitespaces from begining and end of string??)
17th Jun 2017, 7:31 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 4
Thank you both, Your code helps me lot.
17th Jun 2017, 7:39 AM
Valerie Gane
Valerie Gane - avatar
0
hello 👋 my friend (Valerie gane)
8th Jul 2017, 2:44 PM
bzhzbzg