# File lib/Borges/Utilities/StateRegistry.rb, line 87 def snapshot #snapshot = SeasidePlatformSupport.weakDictionaryOfSize(@objects.size) snapshot = Weak::IdentityKeyHash.new @objects.each do |obj, copy| if snapshot_identical_to(copy, obj) then snapshot[obj] = copy else snapshot[obj] = obj.dup end end return snapshot end