add to_s for statements

This commit is contained in:
Torsten Ruger
2018-07-03 22:18:19 +03:00
parent e099014d63
commit 2ad24ab0bb
11 changed files with 51 additions and 0 deletions

View File

@ -52,5 +52,9 @@ module Vool
@clazz.set_instance_type( Parfait::Type.for_hash( @clazz , ivar_hash ) )
end
end
def to_s(depth = 0)
at_depth(depth , "class #{name}" , @body.to_s(depth + 1) , "end")
end
end
end