2017-09-04 20:00:08 +02:00
|
|
|
module Mom
|
2017-09-06 11:11:30 +02:00
|
|
|
class IfStatement < Statement
|
2017-09-04 20:00:08 +02:00
|
|
|
attr_reader :condition , :if_true , :if_false
|
|
|
|
|
|
|
|
attr_accessor :hoisted
|
|
|
|
|
|
|
|
def initialize( cond , if_true , if_false = nil)
|
|
|
|
@condition = cond
|
|
|
|
@if_true = if_true
|
|
|
|
@if_false = if_false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|