Skip to content

Instantly share code, notes, and snippets.

@DiegoSalazar
Last active January 31, 2017 19:19
Show Gist options
  • 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