unlinking the objects collection from the machine

passing it around instead
This commit is contained in:
Torsten Ruger
2016-12-31 18:46:17 +02:00
parent b094bcc64f
commit 113b349af5
7 changed files with 37 additions and 33 deletions

View File

@ -3,9 +3,10 @@ module Register
# collect anything that is in the space but and reachable from init
module Collector
def collect_space
@objects.clear
@objects = {}
keep Parfait.object_space , 0
constants.each {|obj| keep(obj,0)}
@objects
end
def keep( object , depth )