报告自 Ruby 1.9 版本起弃用的语法的使用情况。 例如,对于单行 ifwhenunless, 使用 : 而不是 then

示例:

condition = true
if condition: 1 else 0 # -> if condition then 1 else 0
unless condition: 0 else 1 # -> unless condition then 0 else 1

value = 1
case value
when 1: true # -> when 1 then true
end