End of Life Ruby 3.1 has reached end of life and gets no more fixes. 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.1.3/lib/drb/drb.rb, line 373
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.