Last active
January 31, 2017 19:19
-
-
Save DiegoSalazar/e5c5c7e6ba3980913d51 to your computer and use it in GitHub Desktop.
What is it about Ruby that makes this work?
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
thing = if something? | |
"this" | |
else | |
"that" | |
end | |
puts thing | |
# => "this" or "that" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment