I never need the ending newline I get from gets. Half of the time I forget to chomp it and it is a pain in the....
gets
chomp
Why is it there?
var = gets.chomp
This puts it all on one line for you.