From: han.holl@... (Han Holl) Date: 2003-03-27T23:34:13+09:00 Subject: Comparable, String and == Maybe I'm doing something very stupid, but consider this. The following little program: class Awk < String include Comparable def <=>(other) puts "I am called" super end end a = Awk.new('a') b = Awk.new('a') if a == b puts 'Equal' end if a < b puts 'Hurrah' end produces, quite against my expectation, Equal I am called Which means that Awk#<=> isn't called for == Both on 1.6.8 and 1.8.0 This _must_ be my mistake, but I just don't see it. Suggestions ? Han Holl