Class: Rudelo::Parsers::SetLogicTransform::SetConstructionExpr

Inherits:
Struct
  • Object
show all
Defined in:
lib/rudelo/parsers/set_logic_transform.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#leftObject

Returns the value of attribute left

Returns:

  • (Object)

    the current value of left



36
37
38
# File 'lib/rudelo/parsers/set_logic_transform.rb', line 36

def left
  @left
end

#rightObject

Returns the value of attribute right

Returns:

  • (Object)

    the current value of right



36
37
38
# File 'lib/rudelo/parsers/set_logic_transform.rb', line 36

def right
  @right
end

Instance Method Details

#evalObject



37
38
39
# File 'lib/rudelo/parsers/set_logic_transform.rb', line 37

def eval
  right.reduce(left){|left, set_op| set_op.eval(left) }
end