Le 18 juillet 03:57, Matthew Borgeson a ˝─rit :

BTW, to go further into rubyisms, I believe this is the typical
situation where symbols should be used (eg. dose_sex = :female).

My way :

dose_sex = nil
until dose_sex
  print 'What gender is your patient (please enter m or f) : '
  dose_sex = case gets.chomp.downcase
    when 'f' then :female
    when 'm' then :male
    else puts "Please only enter m or f."
  end
end

puts "You chose #{dose_sex.to_s}."

HTH !

Fred
-- 
Run desire run  Sexual being  
Run him like a blade  To and through the heart  
No conscience  One motive  
Cater to the hollow                           (A Perfect Circle, Hollow)