bbatsov/ruby-style-guide — Issue #66: Spaces around { and before } in string interpolation
Author: amiel
Created: 2012-01-06 21:14:24+00:00
State: open

So far this guide states that:

> Use *spaces* around operators, after commas, colons and semicolons, *around { and before }*.

However, all examples using string interpolation do not use spaces (`"Example #{self.number}"`).

Because of the previous statement, I've started using a string interpolation style like this:

```Ruby
"Example #{ self.number }"
```

Obviously, there cannot be a space before `{` and it cannot required to have one after `}`,
as that is part of the string. However, I find it nice to have the visual distinction that there is *code*
between `{` and `}`.

Thoughts?