more parfait ripples

changes due to previous changes in parfait api
This commit is contained in:
Torsten Ruger
2015-05-18 10:10:31 +03:00
parent d52cd82c92
commit d348e7afe7
6 changed files with 20 additions and 20 deletions

View File

@ -37,6 +37,7 @@ module Parfait
counter = self.length()
return if counter >= len
internal_object_grow( len + 1)
counter = counter + 1
while( counter < len)
set_char( counter , fill_char)
counter = counter + 1
@ -57,7 +58,8 @@ module Parfait
def range_correct_index at
index = at
index = self.length + at if at < 0
raise "index out of bounds #{at} > #{self.length}" if (index < 0) or (index > self.length)
raise "index must be positive , not #{at}" if (index <= 0)
raise "index too large #{at} > #{self.length}" if (index > self.length)
return index
end