I have never seen a double condition like that on one line. I'm assuming it breaks down to the following?

```ruby
unless String === str
  if str.respond_to?(:to_str)
    str = str.to_str
  end
end
```