From: Brian Candler Date: 2003-08-11T06:40:20+09:00 Subject: Re: Ruby and OOP-design (question of an old "procedural person" ;) On Mon, Aug 11, 2003 at 03:16:55AM +0900, Dan Doel wrote: > It was just an example. #nil? could be written that way, although then > it'd be pointless, since > > if obj ... > > Would be exactly the same as > > if obj.nil? ... I think you mean 'if obj.notnil?' could be written that way. if obj... is equivalent to unless obj.nil? ... with the exception of obj == false. Cheers, Brian.