Skip to content

Instantly share code, notes, and snippets.

@ajmalafif
Created September 17, 2012 04:52
Show Gist options
  • Save ajmalafif/3735624 to your computer and use it in GitHub Desktop.
Save ajmalafif/3735624 to your computer and use it in GitHub Desktop.
[Bloc.io] Happy or Sad
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