On 10/18/05, Kevin Ballard <kballard / gmail.com> wrote: > I'm not sure what the ideal is, but this is certainly more terse: > > def mymethod > a = someobjectreference('a') > b = a.some_attribute unless a.nil? > c = b.some_attribute unless b.nil? > c.dosomething unless c.nil? > end > > If any of those are nil, the rest of the statements will evaluate to > nil as well. > > > Thank you Kevin. I knew I was missing the obvious.