work on ObjectWriter

Back to the root! but lots of adjusting
ObjectWriter takes machine, machine has space
Virtual constants become Parfait::Objects etc
This commit is contained in:
Torsten Ruger
2015-05-16 12:53:10 +03:00
parent 9d8dc68bf4
commit 9376b8bc16
12 changed files with 65 additions and 50 deletions

View File

@ -42,6 +42,15 @@ module Parfait
self.length == 0
end
def each
index = 0
while index < self.length
item = get(index)
yield item
index = index + 1
end
self
end
def grow_to(len)
raise "negative length for grow #{len}" if len < 0
return unless len > self.length