Module: IceCube::Validations::Count
- Included in:
- IceCube::ValidatedRule
- Defined in:
- lib/ice_cube/validations/count.rb
Defined Under Namespace
Classes: Validation
Instance Method Summary collapse
Instance Method Details
#count(max) ⇒ Object
10 11 12 13 14 |
# File 'lib/ice_cube/validations/count.rb', line 10 def count(max) @count = max replace_validations_for(:count, [Validation.new(max, self)]) # replace self end |
#occurrence_count ⇒ Object
accessor
6 7 8 |
# File 'lib/ice_cube/validations/count.rb', line 6 def occurrence_count @count end |