Module: IceCube::Validations::MinuteOfHour

Includes:
Lock
Included in:
IceCube::ValidatedRule
Defined in:
lib/ice_cube/validations/minute_of_hour.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

#minute_of_hour(*minutes) ⇒ Object



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

def minute_of_hour(*minutes)
  minutes.each do |minute|
    validations_for(:minute_of_hour) << Validation.new(minute)
  end
  clobber_base_validations(:min)
  self
end