Which should I use as I had just started learning Ruby for web development use, so shall we use this for such below example:
print "Type your chosen number?"
user_number = Integer(gets.chomp)
Or
print "Type your chosen number?"
user_number = gets.chomp.to_i