rubyx/lib/vool/statements.rb

21 lines
344 B
Ruby
Raw Normal View History

2017-04-01 21:28:57 +03:00
module Vool
class Statements < Statement
attr_accessor :statements
def initialize(statements)
@statements = statements
end
2017-04-02 19:12:42 +03:00
def empty?
@statements.empty?
end
def single?
@statements.length == 1
end
def first
@statements.first
end
end
class ScopeStatement < Statements
2017-04-01 21:28:57 +03:00
end
end