Class: Rudelo::Parsers::SetLogicTransform::SetLogicExpr

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



27
28
29
# File 'lib/rudelo/parsers/set_logic_transform.rb', line 27

def left
  @left
end

#opObject

Returns the value of attribute op

Returns:

  • (Object)

    the current value of op



27
28
29
# File 'lib/rudelo/parsers/set_logic_transform.rb', line 27

def op
  @op
end

#rightObject

Returns the value of attribute right

Returns:

  • (Object)

    the current value of right



27
28
29
# File 'lib/rudelo/parsers/set_logic_transform.rb', line 27

def right
  @right
end

Instance Method Details

#evalObject



28
29
30
# File 'lib/rudelo/parsers/set_logic_transform.rb', line 28

def eval
  left.eval.send(op, right)
end

#setObject



31
32
33
# File 'lib/rudelo/parsers/set_logic_transform.rb', line 31

def set
  right
end