Skip to content

Instantly share code, notes, and snippets.

@DiegoSalazar
Last active January 31, 2017 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DiegoSalazar/e5c5c7e6ba3980913d51 to your computer and use it in GitHub Desktop.
Save DiegoSalazar/e5c5c7e6ba3980913d51 to your computer and use it in GitHub Desktop.
What is it about Ruby that makes this work?
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