Class: Rudelo::Parsers::SetLogicTransform::SetConstructionExpr
- Inherits:
-
Struct
- Object
- Struct
- Rudelo::Parsers::SetLogicTransform::SetConstructionExpr
- Defined in:
- lib/rudelo/parsers/set_logic_transform.rb
Instance Attribute Summary collapse
-
#left ⇒ Object
Returns the value of attribute left.
-
#right ⇒ Object
Returns the value of attribute right.
Instance Method Summary collapse
Instance Attribute Details
#left ⇒ Object
Returns the value of attribute left
36 37 38 |
# File 'lib/rudelo/parsers/set_logic_transform.rb', line 36 def left @left end |
#right ⇒ Object
Returns the value of attribute right
36 37 38 |
# File 'lib/rudelo/parsers/set_logic_transform.rb', line 36 def right @right end |
Instance Method Details
#eval ⇒ Object
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 |