Move the space instance to the parfait module
A better fit, maybe even a pattern for singletons
This commit is contained in:
@ -4,7 +4,7 @@ module Register
|
||||
module Collector
|
||||
def collect
|
||||
self.objects.clear
|
||||
keep Parfait::Space.object_space , 0
|
||||
keep Parfait.object_space , 0
|
||||
constants.each {|o| keep(o,0)}
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user