Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if conditon == CONSTANT1 then p = thisVar
- elsif conditon == CONSTANT2 then p = thisOtherVar
- ... # and so on.
- someArray.each do | t |
- # Do logic, revolving around value of p
- ...
- --> Logic causes p needing to be updated...
- --> Want to write back p's changes to original var? How best to do this?
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement