Module: IceCube::Validations::WeeklyInterval

Included in:
WeeklyRule
Defined in:
lib/ice_cube/validations/weekly_interval.rb

Defined Under Namespace

Classes: Validation

Instance Method Summary collapse

Instance Method Details

#interval(interval, week_start = :sunday) ⇒ Object



7
8
9
10
11
# File 'lib/ice_cube/validations/weekly_interval.rb', line 7

def interval(interval, week_start = :sunday)
  validations_for(:interval) << Validation.new(interval, week_start)
  clobber_base_validations(:day)
  self
end