public
Last active

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
irb(main):001:0> nil
=> nil
irb(main):002:0> nil > 10
NoMethodError: undefined method `>' for nil:NilClass
from (irb):2
from :0
irb(main):003:0> 10 > nil
ArgumentError: comparison of Fixnum with nil failed
from (irb):3:in `>'
from (irb):3
from :0
irb(main):004:0> 10 < nil
ArgumentError: comparison of Fixnum with nil failed
from (irb):4:in `<'
from (irb):4
from :0
irb(main):005:0> 10 == nil
=> false

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.