Module: IceCube::Validations::MonthlyInterval

Included in:
MonthlyRule
Defined in:
lib/ice_cube/validations/monthly_interval.rb

Defined Under Namespace

Classes: Validation

Instance Method Summary collapse

Instance Method Details

#interval(interval = 1) ⇒ Object



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

def interval(interval = 1)
  validations_for(:interval) << Validation.new(interval)
  clobber_base_validations(:month)
  self
end