From 575d19cb02157ade435ecdf70c4396dbe2a6455d Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Sun, 7 Jun 2015 10:06:08 +0200 Subject: [PATCH] assembling layout --- lib/parfait/module.rb | 3 +-- lib/register/assembler.rb | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/parfait/module.rb b/lib/parfait/module.rb index 1e4aadec..902acbb6 100644 --- a/lib/parfait/module.rb +++ b/lib/parfait/module.rb @@ -17,7 +17,6 @@ module Parfait super() @name = name @instance_methods = List.new_object - @name = name @super_class = superclass @meta_class = nil#MetaClass.new(self) end @@ -35,7 +34,7 @@ module Parfait @instance_methods.each do |method| names.push method.name end - names + names end def add_instance_method method diff --git a/lib/register/assembler.rb b/lib/register/assembler.rb index 01b8d6fc..2903eee2 100644 --- a/lib/register/assembler.rb +++ b/lib/register/assembler.rb @@ -171,6 +171,9 @@ module Register array.position end + def assemble_Layout layout + assemble_object(layout) + end def assemble_Dictionary hash # so here we can be sure to have _identical_ keys/values arrays assemble_object( hash , [ hash.keys , hash.values ] )