What is the difference between STDIN.gets() and gets.chomp() in Ruby? Don't they both take the original input from the user?
question: if I want to convert my input to an integer, will I do
myNumb = Integer(STDIN.gets())
and
myNumb = Integer(gets.chomp())
Edmund
source share