array to list conversion

start on layouts
This commit is contained in:
Torsten Ruger
2015-05-16 14:01:48 +03:00
parent bee269f7a8
commit 7085dee510
6 changed files with 45 additions and 9 deletions

View File

@ -51,6 +51,10 @@ module Parfait
end
self
end
def set_length len
# TODO check if not shrinking
grow_to len
end
def grow_to(len)
raise "negative length for grow #{len}" if len < 0
return unless len > self.length