diff --git a/app/main/controllers/objects_controller.rb b/app/main/controllers/objects_controller.rb index bb23402..03f895d 100644 --- a/app/main/controllers/objects_controller.rb +++ b/app/main/controllers/objects_controller.rb @@ -14,7 +14,8 @@ module Main container.addEventListener("mouseenter" , red) end - def marker var + def marker id + var = Virtual.machine.objects[id] return "Wo" if var.is_a? String var.class.name.split("::").last[0,2] end @@ -24,11 +25,11 @@ module Main fields = [] if object and ! object.is_a?(String) clazz = object.class.name.split("::").last - fields << ["#{clazz}:#{object.internal_object_length}" , 0] + fields << ["#{clazz}:#{object.object_id}" , 0] fields << ["--------------------" , 0 ] object.get_instance_variables.each do |variable| f = object.get_instance_variable(variable) - fields << ["#{variable} : #{marker(f)} : #{f.object_id}" , f.object_id] + fields << ["#{variable} : #{marker(f.object_id)} : #{f.object_id}" , f.object_id] end end fields diff --git a/app/main/views/objects/index.html b/app/main/views/objects/index.html index 8302809..a4f3d91 100644 --- a/app/main/views/objects/index.html +++ b/app/main/views/objects/index.html @@ -3,7 +3,7 @@ <:Body>