From: dblack@... Date: 2006-10-06T20:38:23+09:00 Subject: Re: nil being empty On Fri, 6 Oct 2006, Ohad Lutzky wrote: > Show of hands - who thinks this is bad form? > > class NilClass > def empty?; true; end > end /me raises hand. David -- David A. Black | dblack@wobblini.net Author of "Ruby for Rails" [1] | Ruby/Rails training & consultancy [3] DABlog (DAB's Weblog) [2] | Co-director, Ruby Central, Inc. [4] [1] http://www.manning.com/black | [3] http://www.rubypowerandlight.com [2] http://dablog.rubypal.com | [4] http://www.rubycentral.org