Module: IceCube::Validations::DayOfMonth

Includes:
Lock
Included in:
IceCube::ValidatedRule
Defined in:
lib/ice_cube/validations/day_of_month.rb

Defined Under Namespace

Classes: Validation

Constant Summary

Constants included from Lock

Lock::INTERVALS

Instance Method Summary collapse

Methods included from Lock

#validate

Instance Method Details

#day_of_month(*days) ⇒ Object



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

def day_of_month(*days)
  days.each do |day|
    validations_for(:day_of_month) << Validation.new(day)
  end
  clobber_base_validations(:day, :wday)
  self
end