Class: Rudelo::Parsers::SetLogicTransform::CardinalityExpr
- Inherits:
-
Struct
- Object
- Struct
- Rudelo::Parsers::SetLogicTransform::CardinalityExpr
- Defined in:
- lib/rudelo/parsers/set_logic_transform.rb
Instance Attribute Summary collapse
-
#op ⇒ Object
Returns the value of attribute op.
-
#qty ⇒ Object
Returns the value of attribute qty.
Instance Method Summary collapse
Instance Attribute Details
#op ⇒ Object
Returns the value of attribute op
48 49 50 |
# File 'lib/rudelo/parsers/set_logic_transform.rb', line 48 def op @op end |
#qty ⇒ Object
Returns the value of attribute qty
48 49 50 |
# File 'lib/rudelo/parsers/set_logic_transform.rb', line 48 def qty @qty end |
Instance Method Details
#empty? ⇒ 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 |