Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 86cedda

Browse files
committed
fixed rubocop#66 - string interpolation suggestion
1 parent 4240682 commit 86cedda

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,6 +1125,13 @@ syntax.
11251125
email_with_name = "#{user.name} <#{user.email}>"
11261126
```
11271127
1128+
* Consider padding string interpolation code with space. It more clearly sets the
1129+
code apart from the string.
1130+
1131+
```Ruby
1132+
"#{ user.last_name }, #{ user.first_name }"
1133+
```
1134+
11281135
* Prefer single-quoted strings when you don't need string interpolation or
11291136
special symbols such as `\t`, `\n`, `'`, etc.
11301137

0 commit comments

Comments
 (0)