Skip to content

Instantly share code, notes, and snippets.

@lhz
Created August 30, 2012 14:20
Show Gist options
  • Save lhz/3529476 to your computer and use it in GitHub Desktop.
Save lhz/3529476 to your computer and use it in GitHub Desktop.
[1] pry(main)> !(1..2)
=> false
[2] pry(main)> not((1..2))
=> false
[3] pry(main)> not(1..2)
(pry):3: warning: integer literal in conditional range
(pry):3: warning: integer literal in conditional range
=> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment