Module: IceCube::Validations::DailyInterval

Included in:
DailyRule
Defined in:
lib/ice_cube/validations/daily_interval.rb

Defined Under Namespace

Classes: Validation

Instance Method Summary collapse

Instance Method Details

#interval(interval) ⇒ Object

Add a new interval validation



6
7
8
9
10
# File 'lib/ice_cube/validations/daily_interval.rb', line 6

def interval(interval)
  validations_for(:interval) << Validation.new(interval)
  clobber_base_validations(:wday, :day)
  self
end