From: Ryan Davis Date: 2008-08-31T11:44:21+09:00 Subject: Re: Simple conditional causing hanging? On Aug 30, 2008, at 18:56 , Michael Morin wrote: > You want @thisLine.nil?. Alternatively, you could use @thisLine == > nil, @thisLine.class == NilClass, or even @thisClass === NilClass. > But @thisLine.nil? is the preferred way. NilClass === @thisLine class must come first to use Module#===