fixed layout inspect bug

This commit is contained in:
Torsten Ruger
2015-10-26 15:07:59 +02:00
parent 885aa765d6
commit 55dd5f74fc
4 changed files with 50 additions and 5 deletions

View File

@ -124,10 +124,7 @@ module Parfait
end
def inspect
inspect_from 1
end
def inspect_from index
index = 1
ret = ""
while index <= self.get_length
item = get(index)

View File

@ -34,6 +34,7 @@ module Parfait
def initialize( object_class )
super()
self.object_class = object_class
add_instance_variable :layout
end
def == other
@ -73,7 +74,7 @@ module Parfait
end
def inspect
"Layout[#{inspect_from(3)}]"
"Layout[#{super}]"
end
def sof_reference_name