Implement ObjectSpace.each_object .