Guest User

Untitled

a guest
May 1st, 2012
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment