I was reading up about Procs due to an interesting error in some code:
warning: tried to create Proc object without a block
So I picked up my copy (and got a nice little workout in the process) of The Ruby Way, 2nd edition by Hal Fulton. It’s a good book for all Rubists and Railers. It had this nice little gem right before the section on Procs:
Hal also compares it to a “save game” feature. Probably easier to understand among the video-game-playing-and-computer-programming crowd. Nevertheless, I think its probably still worth it to go watch Run Lola Run to improve your understanding of continuations.