Class: Crntb::DayOfWeek

Inherits:
Field
  • Object
show all
Defined in:
lib/crntb/field.rb

Instance Attribute Summary

Attributes inherited from Field

#field

Instance Method Summary collapse

Methods inherited from Field

#every_time?, #expand_range, #first_to_last?, #get_collection, #get_range, #get_step, #initialize, #interpretation, parse, #range_time?

Constructor Details

This class inherits a constructor from Crntb::Field

Instance Method Details

#field_rangeObject



194
195
196
# File 'lib/crntb/field.rb', line 194

def field_range
  0..7
end

#parseObject



185
186
187
188
189
190
191
192
# File 'lib/crntb/field.rb', line 185

def parse
  case field
  when '*'
    ""
  else
    "and on #{super}"
  end
end