From: Florian Gross Date: 2004-07-18T04:47:13+09:00 Subject: Re: [NUBY] Code sample from The Ruby Way Alexey Verkhovsky wrote: > I don't understand, what is this line for: > return nil if self.nil? > Can self.nil? ever evaluate to true in a method of String??? It looks like a bug -- the only Object that returns true on .nil? in Standard Ruby is nil itself. Maybe they wanted to do self.empty? / other.empty? instead? (But then again the Levenstein distance from an empty string to "foo" should be 3...) > Best regards, > Alexey Verkhovsky More regards, Florian Gross