Class: Async::Cron::Month
Constant Summary
collapse
- RANGE =
0..11
Instance Method Summary
collapse
Methods inherited from Period
#include?, #initialize, parse, #step, #to_a
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
|