Slide 76
Slide 76 text
# Cures cancer. Beware of race conditions or else you’ll turn into a
# newt or something.
#
# options - A Hash consisting of:
# age - The Integer age of the patient.
# money - The Float amount of money in the patient’s account
# valuable - A Boolean value of whether the patient is valuable
# to society or not.
# rollback - A Boolean of whether we should troll the patient and give
# cancer again once they’re cured.
#
# This returns a Patient record. Raises UncurableError if the patient can’t
# be cured.
def cure_cancer (options, rollback)
# boring implementation details, you can figure it out yourself
end