rubyx/lib/vool/if_statement.rb
2017-04-02 19:12:42 +03:00

20 lines
313 B
Ruby

module Vool
class IfStatement < Statement
attr_accessor :condition , :if_true , :if_false
def initialize( cond = nil)
@condition = cond
@if_true = []
@if_false = []
end
def has_false?
@if_false != nil
end
def has_true?
@if_true != nil
end
end
end