Oh besides one could also rewrite it to:

```ruby
self.writer = if ...
                 ..
              else
```

:)