Module: IceCube::Validations::DayOfYear

Included in:
IceCube::ValidatedRule
Defined in:
lib/ice_cube/validations/day_of_year.rb

Defined Under Namespace

Classes: Validation

Instance Method Summary collapse

Instance Method Details

#day_of_year(*days) ⇒ Object



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

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