Fix ruby normalising to_vool

So that vool layer never has complex conditions or returns
Start with while, next if, return and assign
This commit is contained in:
2019-08-16 14:09:56 +03:00
parent 84b9811e55
commit c213cf874b
10 changed files with 40 additions and 31 deletions

View File

@ -33,6 +33,9 @@ module Vool
def shift
@statements.shift
end
def pop
@statements.pop
end
# to_mom all the statements. Append subsequent ones to the first, and return the
# first.