Class: ActiveFacts::Metamodel::Bound
- Inherits:
-
Object
- Object
- ActiveFacts::Metamodel::Bound
- Defined in:
- lib/activefacts/metamodel/metamodel.rb,
lib/activefacts/metamodel/extensions.rb
Instance Method Summary collapse
Instance Method Details
#<=(other) ⇒ Object
1096 1097 1098 1099 |
# File 'lib/activefacts/metamodel/extensions.rb', line 1096 def <=(other) return true if other == Infinity is_inclusive ? value <= other : value < other end |
#>=(other) ⇒ Object
1101 1102 1103 1104 |
# File 'lib/activefacts/metamodel/extensions.rb', line 1101 def >=(other) return true if other == -Infinity is_inclusive ? value >= other : value > other end |