Class: Rudelo::Parsers::SetLogicTransform::CardinalityExpr

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

#opObject

Returns the value of attribute op

Returns:

  • (Object)

    the current value of op



48
49
50
# File 'lib/rudelo/parsers/set_logic_transform.rb', line 48

def op
  @op
end

#qtyObject

Returns the value of attribute qty

Returns:

  • (Object)

    the current value of qty



48
49
50
# File 'lib/rudelo/parsers/set_logic_transform.rb', line 48

def qty
  @qty
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


52
53
54
# File 'lib/rudelo/parsers/set_logic_transform.rb', line 52

def empty?
  false
end

#eval(set) ⇒ Object



49
50
51
# File 'lib/rudelo/parsers/set_logic_transform.rb', line 49

def eval(set)
  set.size.send(op, qty)
end