class DRb::DRbServer

def any_to_s(obj)

to_s is not defined for the object.
Coerce an object to a string, providing our own representation if
def any_to_s(obj)
  "#{obj}:#{obj.class}"
rescue
  Kernel.instance_method(:to_s).bind_call(obj)
end