rubyx/lib/mom/if_statement.rb
Torsten Ruger dab4e74659 Reworking if statement
Using 2 phase approach
Flattening tbd
2017-09-04 21:00:08 +03:00

15 lines
272 B
Ruby

module Mom
class IfStatement < Instruction
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