How about:
```ruby
@url = DEFAULT_URL
@url = @config.url if @config.url
@url = @config.url = opts[:url] if opts[:url]
```
It's equally ugly, though. Do whatever you like best here.