Module: IceCube::Validations::YearlyInterval

Included in:
YearlyRule
Defined in:
lib/ice_cube/validations/yearly_interval.rb

Defined Under Namespace

Classes: Validation

Instance Method Summary collapse

Instance Method Details

#interval(interval) ⇒ Object



3
4
5
6
7
8
# File 'lib/ice_cube/validations/yearly_interval.rb', line 3

def interval(interval)
  @interval = normalized_interval(interval)
  replace_validations_for(:interval, [Validation.new(@interval)])
  clobber_base_validations(:year)
  self
end