Class: Kumi::Syntax::CaseExpression

Inherits:
Struct
  • Object
show all
Includes:
Node
Defined in:
lib/kumi/syntax/case_expression.rb

Instance Attribute Summary collapse

Attributes included from Node

#hints, #loc

Instance Method Summary collapse

Methods included from Node

#==, #initialize

Instance Attribute Details

#conditionObject

Returns the value of attribute condition

Returns:

  • (Object)

    the current value of condition



5
6
7
# File 'lib/kumi/syntax/case_expression.rb', line 5

def condition
  @condition
end

#resultObject

Returns the value of attribute result

Returns:

  • (Object)

    the current value of result



5
6
7
# File 'lib/kumi/syntax/case_expression.rb', line 5

def result
  @result
end

Instance Method Details

#childrenObject



8
# File 'lib/kumi/syntax/case_expression.rb', line 8

def children = [condition, result]