fixed layouts

also moved objects to machine, from space
space has a list of objects, but implicit,
not as an explicit array
This commit is contained in:
Torsten Ruger
2015-05-31 13:02:29 +03:00
parent aaa206fbca
commit 03bdc16810
8 changed files with 69 additions and 75 deletions

View File

@ -54,9 +54,14 @@ module Parfait
internal_object_set(LAYOUT_INDEX , layout)
end
# so we can keep the raise in get_layout
def has_layout?
! internal_object_get(LAYOUT_INDEX).nil?
end
def get_layout()
l = internal_object_get(LAYOUT_INDEX)
raise "No layout #{self.class}:#{self.to_s} #{self.object_id}" unless l
raise "No layout #{self.class}:#{self.class} #{self.object_id}" unless l
return l
end