rubyx/lib/vool/statements.rb
2017-04-05 14:03:48 +03:00

24 lines
392 B
Ruby

module Vool
class Statements < Statement
attr_accessor :statements
def initialize(statements)
@statements = statements
end
def empty?
@statements.empty?
end
def single?
@statements.length == 1
end
def first
@statements.first
end
def length
@statements.length
end
end
class ScopeStatement < Statements
end
end