Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
DRb::DRbIdConv#to_id
to_id(obj)
lib/drb/drb.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/drb/drb.rb, line 374
def to_id(obj)
case obj
when Object
obj.nil? ? nil : obj.__id__
when BasicObject
obj.__id__
end
end
Convert an object into a reference id.
This implementation returns the object’s __id__ in the local object space.