+ 1
Can you change the example of use the .chomp method?
In the proposed application of the .chomp method, there is no difference in the resulting output from the use of the gets method with .chomp and without .chomp. Thank.
1 Réponse
+ 1
".chomp" removes line breaks from a string.
Example: "James\nBolton"