Skip to content

Instantly share code, notes, and snippets.

@azizshamim
Created June 30, 2014 18:17
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 azizshamim/eb68f7e675f3de5b901f to your computer and use it in GitHub Desktop.
Save azizshamim/eb68f7e675f3de5b901f to your computer and use it in GitHub Desktop.
perilous ruby
irb(main):001:0> f = 5
=> 5
irb(main):002:0> f
=> 5
irb(main):003:0> f = 5 and f / 5
=> 1
irb(main):004:0> f
=> 5
irb(main):005:0> f = 5 && f / 5
=> 1
irb(main):006:0> f
=> 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment