Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:147894
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.