3fe286b5ed
gets rid of attraccessor
24 lines
390 B
Ruby
24 lines
390 B
Ruby
module Vool
|
|
class Statements < Statement
|
|
attr_reader :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
|