From: Luc Heinrich Date: 2006-02-03T01:19:34+09:00 Subject: Re: ruby-dev summary 28206-28273 On 2 f�vr. 06, at 15:43, Martin DeMello wrote: > a[1].if?.strip.empty? > a[1].maybe.strip.empty? > a[1].and.strip.empty? How about replacing '.' by something else in those cases ? Something with a slightly different semantic, like "send message only if the receiver is not nil". For example, using ':' if a[1] and a[1].strip.empty? ==> if a[1]:strip.empty? h["key"] and h["key"].dispatch ==> h['key']:dispatch (I've tried with various other characters, ':' is the one which looks the best imho) -- Luc Heinrich - luc@honk-honk.com - http://www.honk-honk.com