Can someone explain what is the difference between false and nil in this case:
irb(main):008:0> Fixnum < Integer
=> true
irb(main):011:0> Integer < Fixnum
=> false
irb(main):012:0> String < Numeric
=> nil
I understand that "strings are not numbers" and that "not all integers are fixnums"
My thinking is naive and logical. Either something includes something, or not, true or false. But there seems to be a third option, for example: "You're kidding, are you?"; -)
Can someone enlighten me?
source
share