From: Matthew Moss Date: 2006-09-09T05:56:26+09:00 Subject: Re: Combine @item.foo.nil? || @item.foo.empty? ? > tr do > td @item.foo > end unless (@item.foo.nil? || @item.foo.empty?) > > Is there a way to combine these two OR clauses into one? Define a method on the class of foo? class Foo def nil_or_empty? return nil? || empty? end end