replace arrays with Statements class

This commit is contained in:
Torsten Ruger
2017-09-06 12:51:24 +03:00
parent 9a1e4a6f27
commit 80c3430536
7 changed files with 16 additions and 9 deletions

View File

@ -15,10 +15,15 @@ module Common
def first
@statements.first
end
def last
@statements.last
end
def length
@statements.length
end
def [](i)
@statements[i]
end
def collect(arr)
@statements.each { |s| s.collect(arr) }
super