I have the following code in my irb:
irb(main):005:0> num = gets.chomp.to_i
,
=> 0
irb(main):006:0> num.is_a? Integer
=> true
irb(main):007:0> num = gets.chomp.to_i
q
=> 0
irb(main):008:0> num.is_a? Integer
=> true
I'm really new to ruby and i wonder, why "q" an "," is here an Integer... Could you please explain me why?