Class: MilkTea::AST::IfExpr

Inherits:
Data
  • Object
show all
Defined in:
lib/milk_tea/core/ast.rb

Instance Attribute Summary collapse

Instance Attribute Details

#conditionObject (readonly)

Returns the value of attribute condition

Returns:

  • (Object)

    the current value of condition



229
230
231
# File 'lib/milk_tea/core/ast.rb', line 229

def condition
  @condition
end

#else_expressionObject (readonly)

Returns the value of attribute else_expression

Returns:

  • (Object)

    the current value of else_expression



229
230
231
# File 'lib/milk_tea/core/ast.rb', line 229

def else_expression
  @else_expression
end

#then_expressionObject (readonly)

Returns the value of attribute then_expression

Returns:

  • (Object)

    the current value of then_expression



229
230
231
# File 'lib/milk_tea/core/ast.rb', line 229

def then_expression
  @then_expression
end