ruby case statement shorthand code example
Example: ruby case statement
case {condition}
when {option1}
#do something
when {option2}
#do something
else #default
#do something else
end
case {condition}
when {option1}
#do something
when {option2}
#do something
else #default
#do something else
end