moved all the normalize stuff over to the ruby layer

Which is how it should have been from the start
This commit is contained in:
Torsten Ruger
2018-07-19 14:47:29 +03:00
parent 38350dd198
commit ae3d64eb53
15 changed files with 5 additions and 179 deletions

View File

@ -44,13 +44,6 @@ module Vool
@statements.each{|a| a.each(&block)}
end
def normalize
if( single? )
first.normalize
else
Statements.new(@statements.collect{|s| s.normalize})
end
end
def to_s(depth = 0)
at_depth(depth , *@statements.collect{|st| st.to_s(depth)})
end
@ -58,12 +51,5 @@ module Vool
end
class ScopeStatement < Statements
def normalize
if( single? )
first.normalize
else
ScopeStatement.new(@statements.collect{|s| s.normalize})
end
end
end
end