The Procedure/Function Block Convention in Ruby Skip to entry content 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 form to use. The one I see people using most often these days is the “line count” convention: curly brackets for one-liners, do...end for multiline statements. E
![The Procedure/Function Block Convention in Ruby - avdi.codes](https://cdn-ak-scissors.b.st-hatena.com/image/square/c8b482cd2793bec66a4488d9b190ae409ffd9a1c/height=288;version=1;width=512/https%3A%2F%2Favdi.codes%2Fwp-content%2Fuploads%2F2019%2F06%2Fcropped-favicon-extraced-from-linda-kerr-loga.png)