Created
August 20, 2015 12:54
-
-
Save kssminus/c60eb952d26e45470f11 to your computer and use it in GitHub Desktop.
ruby의 or 와 ||
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
you = "you" | |
me = "me" | |
whoRU = (you.eql? me) || case you | |
when "you" then "it's you." | |
else "its me.." | |
end | |
#whoRU == "it's you" | |
whoRU = (you.eql? me) or case you | |
when "you" then "it's you." | |
else "its me.." | |
end | |
# whoRU == false, whoRU != "it's you" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment