From: Gavin Sinclair Date: 2004-11-12T09:30:38+09:00 Subject: Re: non-nil, etc. (was Re: true? & false?) On Friday, November 12, 2004, 10:13:04 AM, Hal wrote: > Gavin Sinclair wrote: >>>unless a.nil? >>>.... >>>end >> >> if a.notnil? >> ... >> end >> >> :) > You put a smiley, but in all seriousness I've thought of this. > (Actually I'd use nonnil? or nnil?) Smiley shmiley: require 'extensions/object' if a.notnil? ... elsif b.nonnil? ... end It strictly concerns 'nil', though -- no concept of emptiness is entertained. Gavin