Ruby’s blocks are easily the biggest hurdle most newbies to the language have to overcome. Even for people with years of experience in other languages, the the concept of blocks…
It’s been way too long since I posted a Monday freebie. Today’s little video tries to answer a question I hear pretty often: what’s the difference between blocks, procs, and…
Ruby lets you enclose blocks in either {…} or do…end delimiters. Which you choose is a matter of style. There are two conventions that I know of for deciding which…