Permalink
Browse files

fixed #66 - string interpolation suggestion

  • Loading branch information...
1 parent 4240682 commit 86ceddaddeb78df0cd6e8aa9efb858e025af43de @bbatsov bbatsov committed Apr 21, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 README.md
View
@@ -1125,6 +1125,13 @@ syntax.
email_with_name = "#{user.name} <#{user.email}>"
```
+* Consider padding string interpolation code with space. It more clearly sets the
+ code apart from the string.
+
+ ```Ruby
+ "#{ user.last_name }, #{ user.first_name }"
+ ```
+
* Prefer single-quoted strings when you don't need string interpolation or
special symbols such as `\t`, `\n`, `'`, etc.

0 comments on commit 86cedda

Please sign in to comment.