I've been spending a lot of my time over the last year or so thinking a lot about how people read code.
One thing that I find helpful is simply "talking out loud" to explain how some code sample works, as it reveals your mental model and any gaps in it.
Let's try that with a small ERB template...