Created
February 12, 2012 12:00
-
-
Save dasch/1808184 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
# Incidentally, I wrote this as "RickScore" first. Perhaps an interesting | |
# concept? ;-) | |
score = RockScore.for_term("apple") | |
if score.available? | |
"Score: #{score.value}" | |
else | |
"Could not calculate score" | |
end | |
# NoScore#value would raise an exception. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment