Class: Vangrail::Colang::If

Inherits:
Struct
  • Object
show all
Defined in:
lib/vangrail/colang/ast.rb

Instance Attribute Summary collapse

Instance Attribute Details

#conditionObject

Returns the value of attribute condition

Returns:

  • (Object)

    the current value of condition



45
46
47
# File 'lib/vangrail/colang/ast.rb', line 45

def condition
  @condition
end

#else_bodyObject

Returns the value of attribute else_body

Returns:

  • (Object)

    the current value of else_body



45
46
47
# File 'lib/vangrail/colang/ast.rb', line 45

def else_body
  @else_body
end

#then_bodyObject

Returns the value of attribute then_body

Returns:

  • (Object)

    the current value of then_body



45
46
47
# File 'lib/vangrail/colang/ast.rb', line 45

def then_body
  @then_body
end