Class: CrontabWeekday
- Inherits:
-
AbstractCrontabField
- Object
- AbstractCrontabField
- CrontabWeekday
- Defined in:
- lib/crontab_fields.rb
Constant Summary collapse
- @@min =
0- @@max =
7
Instance Method Summary collapse
-
#initialize(start, stop = nil, step = nil) ⇒ CrontabWeekday
constructor
A new instance of CrontabWeekday.
Methods inherited from AbstractCrontabField
Constructor Details
#initialize(start, stop = nil, step = nil) ⇒ CrontabWeekday
Returns a new instance of CrontabWeekday.
95 96 97 98 99 |
# File 'lib/crontab_fields.rb', line 95 def initialize(start, stop=nil, step=nil) super(start, stop, step) raise "Weekday field #{@start} must not be greater than #{@@min}" if @start < @@min raise "Weekday field #{@stop} must not be greater than #{@@max}" if @stop > @@max end |