fix simple array

This commit is contained in:
Torsten Ruger
2014-08-14 20:24:26 +03:00
parent 2f5ed43073
commit 85dad14cc8
5 changed files with 13 additions and 8 deletions

View File

@@ -21,7 +21,7 @@ module Sof
indent = " " * occurence.level
io.write indent
if(object.respond_to? :to_sof) #mainly meant for arrays and hashes
object.to_sof(io , self)
object.to_sof(io , self , occurence.level)
else
object_write(object , io)
end