Challenge: methods taking multiple blocks
Ruby makes it trivial to pass a block of code into our method calls. But what do we do when a method needs two blocks of code or more? In this week’s Codebrawl, we challenge you to write the most elegant way to allow a method to take multiple blocks. Oh, and we have a great prize for the winner!
Post a comment