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

@ -36,6 +36,11 @@ module Vool
raise "Not implemented for #{self}"
end
def at_depth(depth , *strings)
prefix = " " * 2 * depth
strings.collect{|str| prefix + str}.join("\n")
end
end
class Expression