class DRb::DRbIdConv

def to_id(obj)

object space.
This implementation returns the object's __id__ in the local

Convert an object into a reference id.
def to_id(obj)
  case obj
  when Object
    obj.nil? ? nil : obj.__id__
  when BasicObject
    obj.__id__
  end
end