case ステートメントに置換ができる if ステートメントを報告します。
結果の case ステートメントの when 分岐の最小数を指定するには、「最小分岐数」フィールドを使用します。
例:
fruit = gets
if fruit == 'apple' # Simplifiable 'if' statement
puts 'This is apple!'
elsif fruit == 'peach'
puts 'This is peach!'
elsif fruit == 'orange'
puts 'This is orange!'
elsif fruit == 'banana'
puts 'This is banana!'
end