Class: Async::Cron::Month

Inherits:
Period
  • Object
show all
Defined in:
lib/async/cron/period.rb

Constant Summary collapse

RANGE =
0..11

Instance Method Summary collapse

Methods inherited from Period

#include?, #initialize, parse, #step, #to_a

Constructor Details

This class inherits a constructor from Async::Cron::Period

Instance Method Details

#increment(time) ⇒ Object



239
240
241
# File 'lib/async/cron/period.rb', line 239

def increment(time)
	time.months = @successors[time.months]
end

#reset(time) ⇒ Object



243
244
245
# File 'lib/async/cron/period.rb', line 243

def reset(time)
	time.months = @values.first
end

#value_from(time) ⇒ Object



247
248
249
# File 'lib/async/cron/period.rb', line 247

def value_from(time)
	time.months
end