a start on conditionals

This commit is contained in:
Torsten Ruger
2017-04-02 19:12:42 +03:00
parent 443fd13980
commit f343ad934c
4 changed files with 84 additions and 4 deletions

View File

@ -4,6 +4,15 @@ module Vool
def initialize(statements)
@statements = statements
end
def empty?
@statements.empty?
end
def single?
@statements.length == 1
end
def first
@statements.first
end
end
class ScopeStatement < Statements