我想知道是否有办法压缩这行代码:
elsif i == '+' || i == '-' || i == '/' || i == '*'
ruby conditional if-statement
conditional ×1
if-statement ×1
ruby ×1