Class: ActiveFacts::CQL::Compiler::Quantifier
- Inherits:
-
Object
- Object
- ActiveFacts::CQL::Compiler::Quantifier
- Defined in:
- lib/activefacts/cql/compiler/reading.rb
Instance Attribute Summary collapse
-
#enforcement ⇒ Object
Returns the value of attribute enforcement.
-
#max ⇒ Object
readonly
Returns the value of attribute max.
-
#min ⇒ Object
readonly
Returns the value of attribute min.
Instance Method Summary collapse
-
#initialize(min, max, enforcement = nil) ⇒ Quantifier
constructor
A new instance of Quantifier.
- #inspect ⇒ Object
Constructor Details
#initialize(min, max, enforcement = nil) ⇒ Quantifier
Returns a new instance of Quantifier.
846 847 848 849 850 |
# File 'lib/activefacts/cql/compiler/reading.rb', line 846 def initialize min, max, enforcement = nil @min = min @max = max @enforcement = enforcement end |
Instance Attribute Details
#enforcement ⇒ Object
Returns the value of attribute enforcement.
843 844 845 |
# File 'lib/activefacts/cql/compiler/reading.rb', line 843 def enforcement @enforcement end |
#max ⇒ Object (readonly)
Returns the value of attribute max.
844 845 846 |
# File 'lib/activefacts/cql/compiler/reading.rb', line 844 def max @max end |
#min ⇒ Object (readonly)
Returns the value of attribute min.
844 845 846 |
# File 'lib/activefacts/cql/compiler/reading.rb', line 844 def min @min end |
Instance Method Details
#inspect ⇒ Object
852 853 854 |
# File 'lib/activefacts/cql/compiler/reading.rb', line 852 def inspect "[#{@min}..#{@max}]" end |