<p>I'm working with dRuby and basicly I'm calling a remote method that returns me an object.</p>

<p>In the clientside I have this code:</p>

<pre><code>handle_error(response) if response.is_a?(Error)
</code></pre>

<p>where response is the DRbObject. (I've developed this code before using dRuby and I'm returning an Error object if something went wrong). The problem is that now </p>

<pre><code>response.is_a?(Error)
</code></pre>

<p>comes back with "false" because the object is actually a DRbObject. 
Any idea on how I can check the class of my application object?</p>

<p>Thanks!
Roberto</p>

Although I'm not sure how DRb manages the remote objects, I'd expect it to modify #kind_of?   to keep the class hierarchy on the remote object, so you could do:
```
```
response.kind_of?(Error)
```
```
If this doesn't work you can always ask it if it responds to an specific method and go from there
```
```
response.respond_to?(some_method_on_your_errors)
```
```