Move the space instance to the parfait module
A better fit, maybe even a pattern for singletons
This commit is contained in:
@@ -21,7 +21,7 @@ module Melon
|
||||
|
||||
def on_class statement
|
||||
name , sup , body = *statement
|
||||
clazz = Parfait::Space.object_space.create_class(get_name(name) , get_name(sup) )
|
||||
clazz = Parfait.object_space.create_class(get_name(name) , get_name(sup) )
|
||||
ivar_hash = TypeCollector.new.collect(body)
|
||||
clazz.set_instance_type( Parfait::Type.for_hash( clazz , ivar_hash ) )
|
||||
|
||||
|
Reference in New Issue
Block a user