I have code like this in my (Markaby) templates:

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?

tr do
  td @item.foo
end unless @item.foo.nil_or_empty?

Thanks,
Joe

-- 
Posted via http://www.ruby-forum.com/.