Created
September 17, 2012 04:52
-
-
Save ajmalafif/3735624 to your computer and use it in GitHub Desktop.
[Bloc.io] Happy or Sad
This file contains 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
def smiley(feel = {mood: "happy", mood: "sad", mood: "weird"}) | |
if | |
feel == {"mood" => "happy"} | |
":)" | |
elsif | |
feel == {"mood" => "sad"} | |
":(" | |
else | |
feel == {"mood" => "weird"} | |
":|" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment