Advertisement
Guest User

Untitled

a guest
Sep 20th, 2012
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. if conditon == CONSTANT1 then p = thisVar
  2. elsif conditon == CONSTANT2 then p = thisOtherVar
  3. ... # and so on.
  4.  
  5. someArray.each do | t |
  6.  
  7. # Do logic, revolving around value of p
  8. ...
  9. --> Logic causes p needing to be updated...
  10. --> Want to write back p's changes to original var? How best to do this?
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement