many minor parfait fixes

This commit is contained in:
Torsten Ruger
2015-05-17 15:34:29 +03:00
parent 3bdba119c8
commit e70bfb9f7a
4 changed files with 10 additions and 10 deletions

View File

@ -51,7 +51,7 @@ module Parfait
# set the value at index.
# Lists start from index 1
def get(index)
raise "Only positive indexes, #{len}" if index <= 0
raise "Only positive indexes, #{index}" if index <= 0
if index > self.get_length
return nil
else