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

@ -15,13 +15,23 @@
module Parfait
class Object
attr_reader :type
def self.type_length
1
end
def self.memory_size
4
end
# Make the object space globally available
def self.object_space
@object_space
end
def self.new
factory = @object_space.get_factory(:Object)
object = factory.get_next
object.initialize
end
def type=(t)
set_type( t )