From e4a9bb5c480230804a8e559c48cabfbaed7a6f87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Federico=20Moy=C3=A1?= Date: Fri, 15 Oct 2021 15:53:15 -0300 Subject: [PATCH] Update Ruby guideline around block delimiters --- ruby/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruby/README.md b/ruby/README.md index bbd4538..a147145 100644 --- a/ruby/README.md +++ b/ruby/README.md @@ -201,7 +201,7 @@ engines: - Use `%r{ }` for regular expressions containing more than one `/` - Use `%w[ ]` for word-arrays - Use `%{ }` for strings containing more than one double quote -- Use `do`/`end` for multi-line blocks and `{ }` for single-line blocks +- Use `do`/`end` for procedural blocks and `{ }` for functional blocks, i.e. `{ }` if it returns a value `do`/`end` otherwise - Use a trailing comma in all lists ```rb