From: Ryan Davis Date: 2013-04-12T05:54:19+09:00 Subject: Re: confusion with gets, if On Apr 11, 2013, at 08:41 , Carlo E. Prelz wrote: > input=gets().chomp().to_i() > > chomp() removes the carriage return, and to_i() converts the string to > an integer. % ruby -e "p '1'.chomp.to_i == '1'.to_i" true