From: Robert Klemme Date: 2003-03-28T01:54:31+09:00 Subject: Re: Comparable, String and == "ts" schrieb im Newsbeitrag news:200303271449.h2REnEx07474@moulon.inra.fr... > >>>>> "H" == Han Holl writes: > > H> class Awk < String > H> include Comparable > > pigeon% ruby -e 'p String.ancestors' > [String, Enumerable, Comparable, Object, Kernel] > pigeon% > > This mean that your include is useless. The method String#== is > defined and ruby will use this method rather than use Awk#<=> The output would not change even if method <=> was invoked since a = Awk.new('a') b = Awk.new('a') They *are* equal, although not identical. :-) robert