Created
March 5, 2013 01:40
-
-
Save exterm/5087329 to your computer and use it in GitHub Desktop.
simple type problem in ruby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| irb(main):001:0> "false" ? true : false | |
| (irb):1: warning: string literal in condition | |
| => true | |
| # no warning if string is not a literal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment