Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 1st, 2012  |  syntax: None  |  size: 0.21 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Does the || operator evaluate the second argument even if the first argument is true?
  2. rr
  3. NameError: undefined local variable or method `rr' for main:Object
  4. from (irb):1
  5. from :0
  6.        
  7. (a=10) || (rr=20)
  8. rr  # => nil