Skip to content

Instantly share code, notes, and snippets.

@kalorz
Created September 15, 2017 09:59
Show Gist options
  • Save kalorz/4a807b125425f40258d4c6bc5078b670 to your computer and use it in GitHub Desktop.
Save kalorz/4a807b125425f40258d4c6bc5078b670 to your computer and use it in GitHub Desktop.
Ruby Gotchas: and / && (explanation)
(surprise = true) and false # => surprise is true
surprise = (true && false) # => surprise is false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment