三元 if¶ 三元 if 允许以更简洁的方式编写 if 语句 a = 1 > 2 ? 3 : 4 # The above is the same as: a = if 1 > 2 3 else 4 end