simplify i to_s

This commit is contained in:
Torsten Ruger 2015-11-11 20:45:40 +02:00
parent 6137833140
commit 787f727974

View File

@ -4,9 +4,7 @@ class Integer < Value
if_plus( self - 9)
return 32
else
Word numbers = "0123456789"
int index = self + 1
return numbers.char_at(index)
return 48 + self
end
end