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