Ruby script showing use of case statement