I didn't know there was an Infinity value in Ruby, just found it today:

irb(main):001:0> x = 2.0/0.0
Infinity
irb(main):002:0>

So, my question is, how can you determine if a variable contains Infinity:

irb(main):011:0* puts "To Infinity and beyond" if x == Infinity
NameError: uninitialized constant Infinity
        from (irb):11
irb(main):012:0>

Anyway to do that?

Phil