unlinking the objects collection from the machine
passing it around instead
This commit is contained in:
@ -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 )
|
||||
|
Reference in New Issue
Block a user