From: Jamey Cribbs Date: 2006-03-06T00:23:01+09:00 Subject: Re: Kirbybase Hacks NilClass James Edward Gray II wrote: > On Mar 4, 2006, at 10:25 PM, James Edward Gray II wrote: > >> On Mar 4, 2006, at 7:34 PM, Jamey Cribbs wrote: >> >>> #select { |r| (r.speed and r.speed > 300) or (r.range and r.range < >>> 900) or (r.service_date and r.service_date < Date.today) } >> >> >> select { |r| r.speed > 300 or r.range < 900 or r.service_date < >> Date.today rescue false } > > > I realized, after I sent that, that my solution is *not* equivalent. > Guess that's a good argument for your way of doing things Jamey. ;) Well, I just wanted to thank you for starting this whole discussion. I *really* like getting feedback on KirbyBase and your post has resulted in some great ideas from people concerning this nil issue. Bottom line is that I'm going to work on finding a way to satisfy your request to not override NilClass#method_missing while keeping the simplicity of KirbyBase's query expressions. Thanks again for bringing this up. Jamey