From: Ross Bamford Date: 2006-10-09T07:53:13+09:00 Subject: Re: nil being empty On Fri, 2006-10-06 at 03:21 +0900, Ohad Lutzky wrote: > Show of hands - who thinks this is bad form? > > class NilClass > def empty?; true; end > end I missed this thread until now, so I'll just raise my hand for the "Nil is neither empty nor full, so it shouldn't respond_to?(:empty?)" side of the argument. -- Ross Bamford - rosco@roscopeco.REMOVE.co.uk