class SFRP::Raw::IfExp
Public Instance Methods
convert()
click to toggle source
# File lib/sfrp/raw/expression.rb, line 142 def convert cases = [ MatchExp::Case.new( MatchExp::Pattern.new(Ref.new('True'), nil, []), then_exp ), MatchExp::Case.new( MatchExp::Pattern.new(Ref.new('False'), nil, []), else_exp ) ] MatchExp.new(cond_exp, cases) end