Moving space to object class

away from Parfait module, as that gets collapsed
Leaving shortcut outside parfait for now
This commit is contained in:
2019-09-18 22:36:56 +03:00
parent 41617519d9
commit b0d1948800
14 changed files with 55 additions and 44 deletions

View File

@ -50,13 +50,13 @@ module Parfait
# - flesh out the types , create the real space
# - and finally load the methods
def self.boot!(options)
Parfait.set_object_space( nil )
Parfait::Object.set_object_space( nil ) # in case we are rebooting
types = boot_types
boot_boot_space( types )
classes = boot_classes( types )
fix_types( types , classes )
space = Space.new( classes , options )
Parfait.set_object_space( space )
Parfait::Object.set_object_space( space )
end
# types is where the snake bites its tail. Every chain ends at a type and then it
@ -83,7 +83,7 @@ module Parfait
clazz = Boot::Class.new(type)
boot_space.classes[name] = clazz
end
Parfait.set_object_space( boot_space )
Parfait::Object.set_object_space( boot_space )
end
# when running code instantiates a class, a type is created automatically