>>82
foo = (nil?) ? 1 : 2
ね。確かにあんまり綺麗じゃないよね。Rubyのifは値を返せるから、

foo = if nil? then 1 else 2 end
って書くのはどうか。