Skip to content

Instantly share code, notes, and snippets.

@exterm
Created March 5, 2013 01:40
Show Gist options
  • Select an option

  • Save exterm/5087329 to your computer and use it in GitHub Desktop.

Select an option

Save exterm/5087329 to your computer and use it in GitHub Desktop.
simple type problem in ruby
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