Class: Async::Cron::Hours
Constant Summary
collapse
- RANGE =
0..23
Instance Method Summary
collapse
Methods inherited from Period
#include?, #initialize, parse, #step, #to_a
Instance Method Details
#increment(time) ⇒ Object
181
182
183
|
# File 'lib/async/cron/period.rb', line 181
def increment(time)
time.hours = @successors[time.hours]
end
|
#reset(time) ⇒ Object
185
186
187
|
# File 'lib/async/cron/period.rb', line 185
def reset(time)
time.hours = @values.first
end
|
#value_from(time) ⇒ Object
189
190
191
|
# File 'lib/async/cron/period.rb', line 189
def value_from(time)
time.hours
end
|