redid get_set internal byte with builder

trying to change style, get rid of some of builders functions
This commit is contained in:
Torsten Ruger
2018-08-09 20:15:52 +03:00
parent 0d52b620ed
commit 7002956e81
2 changed files with 18 additions and 13 deletions

View File

@ -137,6 +137,7 @@ module Parfait
def range_correct_index( at )
index = at
# index = self.length + at if at < 0
raise "index not integer #{at.class}" unless at.is_a?(Fixnum)
raise "index must be positive , not #{at}" if (index < 0)
raise "index too large #{at} > #{self.length}" if (index >= self.length )
return index + 11