Skip to content

Commit 21836e2

Browse files
authored
Update Ruby guideline around block delimiters (#70)
1 parent 8f915b0 commit 21836e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ engines:
201201
- Use `%r{ }` for regular expressions containing more than one `/`
202202
- Use `%w[ ]` for word-arrays
203203
- Use `%{ }` for strings containing more than one double quote
204-
- Use `do`/`end` for multi-line blocks and `{ }` for single-line blocks
204+
- Use `do`/`end` for procedural blocks and `{ }` for functional blocks, i.e. `{ }` if it returns a value `do`/`end` otherwise
205205
- Use a trailing comma in all lists
206206

207207
```rb

0 commit comments

Comments
 (0)