shift code from class to module
as class derives from module, module carries much of the code that one thinks of as class class only handles allocation really
This commit is contained in:
@ -58,9 +58,8 @@ module Parfait
|
||||
c
|
||||
end
|
||||
|
||||
def create_class name , variable_names
|
||||
def create_class name
|
||||
c = Class.new_object(name)
|
||||
c.set_instance_names Virtual.new_list(variable_names)
|
||||
@classes[name] = c
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user