would this be an example of using case:

case favourite_colour
 when white
  print 'white'
 when blue
  print 'blue'
 when orange
  print 'orange'
end

instead of

var = favourite_colour
if white
 print 'white'
elsif  blue
 print 'blue'
...
end