Created
June 22, 2010 16:04
-
-
Save jlindley/448672 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Do you think it is a good idea to do downcase and a == or is there a better way? | |
def nbde_new_evaluation_result(nbde_evaluation) | |
letter = nbde_evaluation.part1_test_result.downcase | |
if letter == "p" | |
"Pass" | |
elsif letter == "f" | |
"Fail" | |
else | |
"Unknown" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment